From ce30ce5684537e269b78ecfa36ae9d44db826230 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Tue, 4 Sep 2012 16:27:03 -0700 Subject: [PATCH] Exceptions in the JSON better error reporting --- .../com/todoroo/astrid/actfm/sync/ActFmSyncService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java index e22460c76..cf2816a6c 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java @@ -704,9 +704,9 @@ public final class ActFmSyncService { fileMetadata.setValue(FileMetadata.URL, result.optString("url")); metadataService.save(fileMetadata); } catch (ActFmServiceException e) { - handleException("push-attacgment-error", e); + handleException("push-attachment-error", e); } catch (IOException e) { - handleException("push-attacgment-error", e); + handleException("push-attachment-error", e); } } @@ -1390,7 +1390,7 @@ public final class ActFmSyncService { else handleException("io-exception-list-" + model, e); } catch (JSONException e) { - handleException("json: " + result.toString(), e); + handleException("json-exception-" + model, e); } finally { if(done != null) done.run();