From ca40cb25715fddbee31bba0e25943ea0c92041c8 Mon Sep 17 00:00:00 2001 From: Bradley Wright Date: Wed, 12 Feb 2014 14:10:57 +0000 Subject: [PATCH] Handle non-specific HTTP errors in Panopticon Make sure we handle 422 and other such errors when registering with Panopticon. --- lib/tasks/panopticon.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/panopticon.rake b/lib/tasks/panopticon.rake index ad17100db..7db1041fa 100644 --- a/lib/tasks/panopticon.rake +++ b/lib/tasks/panopticon.rake @@ -28,6 +28,8 @@ namespace :panopticon do else logger.error "Encountered 4 timeouts for '#{edition.slug}', skipping" end + rescue GdsApi::HTTPErrorResponse => e + logger.error "Failed to register '#{edition.slug}' with error #{e.code}: #{e.error_details}" end end end