changeset 374:f22a4bf9a67e

server_side: fix error management at account creation
author souliane <souliane@mailoo.org>
date Mon, 24 Feb 2014 19:05:35 +0100
parents 724a9a03ab02
children 41a386a27002
files libervia_server/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia_server/__init__.py	Mon Feb 24 14:04:21 2014 +0100
+++ b/libervia_server/__init__.py	Mon Feb 24 19:05:35 2014 +0100
@@ -641,7 +641,7 @@
             request.finish()
 
         def registeringError(failure):
-            reason = str(failure.value)
+            reason = failure.value.faultString
             if reason == "ConflictError":
                 request.write('ALREADY EXISTS')
             elif reason == "InternalError":