Mercurial > libervia-web
changeset 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 | a6b3715f0bd6 |
children | 92d76ab67156 |
files | libervia.tac |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
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()