diff libervia.tac @ 295:33e0eb212b14

server side: adapted registeringError reasons to new names in backend
author Goffi <goffi@goffi.org>
date Tue, 17 Dec 2013 01:34:56 +0100
parents ae3ec654836d
children 92d76ab67156
line wrap: on
line diff
--- a/libervia.tac	Mon Dec 16 16:39:03 2013 +0100
+++ b/libervia.tac	Tue Dec 17 01:34:56 2013 +0100
@@ -644,14 +644,11 @@
 
         def registeringError(failure):
             reason = str(failure.value)
-            if reason == "CONFLICT":
+            if reason == "ConflictError":
                 request.write('ALREADY EXISTS')
-            elif reason == "INTERNAL":
+            elif reason == "InternalError":
                 request.write('INTERNAL')
             else:
-                #import pdb
-                #pdb.set_trace()
-
                 error('Unknown registering error: %s' % (reason,))
                 request.write('Unknown error (%s)' % reason)
             request.finish()