Skip to content

Commit bc316b8

Browse files
fix issue #6
1 parent 107b570 commit bc316b8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

NomadCode.Azure/NomadCode.Azure/AzureClient/AzureClient_Sync.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,16 @@ void sync<T> (IMobileServiceSyncTable<T> table, Expression<Func<T, bool>> where
3636
performingFullRefresh = false;
3737
}
3838
}
39-
catch (Exception ex)
39+
#if !DEBUG
40+
catch (Exception)
41+
{
42+
#else
43+
catch (Exception e)
4044
{
41-
logDebug<T> (ex);
45+
logDebug<T> (e);
46+
#endif
4247
lastRefresh = default (DateTime);
48+
throw;
4349
}
4450
});
4551
}
@@ -58,7 +64,7 @@ async Task syncAsync<T> (IMobileServiceSyncTable<T> table, Expression<Func<T, bo
5864

5965
var queryId = where == null ? $"{table?.TableName ?? typeof (T).Name}" : $"{table?.TableName ?? typeof (T).Name}{syncQueryFormat}";
6066

61-
// pull executed against a table that has pending local updates tracked by the context
67+
// pull executed against a table that has pending local updates tracked by the context
6268
// automatically triggers a context push first, doing so manually is redundant
6369
await table?.PullAsync (queryId, query);
6470
}

0 commit comments

Comments
 (0)