Exceptions in the JSON better error reporting

pull/14/head
Tim Su 13 years ago
parent 0dc1f4e3a0
commit ce30ce5684

@ -704,9 +704,9 @@ public final class ActFmSyncService {
fileMetadata.setValue(FileMetadata.URL, result.optString("url")); fileMetadata.setValue(FileMetadata.URL, result.optString("url"));
metadataService.save(fileMetadata); metadataService.save(fileMetadata);
} catch (ActFmServiceException e) { } catch (ActFmServiceException e) {
handleException("push-attacgment-error", e); handleException("push-attachment-error", e);
} catch (IOException e) { } catch (IOException e) {
handleException("push-attacgment-error", e); handleException("push-attachment-error", e);
} }
} }
@ -1390,7 +1390,7 @@ public final class ActFmSyncService {
else else
handleException("io-exception-list-" + model, e); handleException("io-exception-list-" + model, e);
} catch (JSONException e) { } catch (JSONException e) {
handleException("json: " + result.toString(), e); handleException("json-exception-" + model, e);
} finally { } finally {
if(done != null) if(done != null)
done.run(); done.run();

Loading…
Cancel
Save