From ef43d7bf696e0d2024687edd366ca7e0759a7ea0 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 4 Nov 2011 15:51:00 -0700 Subject: [PATCH] Added additional logging for 400 and 500 error codes in gtasks sync --- .../com/todoroo/astrid/gtasks/api/GtasksService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/astrid/plugin-src/com/todoroo/astrid/gtasks/api/GtasksService.java b/astrid/plugin-src/com/todoroo/astrid/gtasks/api/GtasksService.java index 550e7d570..fbd250bd7 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gtasks/api/GtasksService.java +++ b/astrid/plugin-src/com/todoroo/astrid/gtasks/api/GtasksService.java @@ -75,6 +75,11 @@ public class GtasksService { String message = context.getString(R.string.gtasks_error_backend); exceptionService.reportError(message, h); throw h; + } else if (statusCode == 400 || statusCode == 500) { + System.err.println("Encountered " + statusCode + " error"); + System.err.println(h.getResponse().getStatusMessage()); + h.printStackTrace(); + throw h; } } }