Mercurial > libervia-web
diff libervia_server/__init__.py @ 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 | c943fd54c90e |
children | 5e0e2032928c |
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":