Mercurial > libervia-backend
diff frontends/src/primitivus/profile_manager.py @ 751:1def5b7edf9f
core, bridge: better GenericException handling
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 17 Dec 2013 00:56:39 +0100 |
parents | 49587e170f53 |
children | bfabeedbf32e |
line wrap: on
line diff
--- a/frontends/src/primitivus/profile_manager.py Mon Dec 16 17:49:54 2013 +0100 +++ b/frontends/src/primitivus/profile_manager.py Tue Dec 17 00:56:39 2013 +0100 @@ -77,11 +77,11 @@ def _profileCreationFailure(self, reason): self.host.removePopUp() - if reason=="CONFLICT": + if reason=="ConflictError": message=_("A profile with this name already exists") - elif reason=="CANCELED": + elif reason=="CancelError": message=_("Profile creation cancelled by backend") - elif reason=="DATABASE": + elif reason=="DATABASE": # FIXME: doesn't seem to exist ! message=_("Database error") else: message=_("Unknown reason (%s)") % reason