Skip to content
Snippets Groups Projects
Commit 6a613a1a authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix printing of errors for unknown codes.

parent 0059c0d3
No related branches found
No related tags found
No related merge requests found
......@@ -333,7 +333,8 @@ def _add_functionality():
def error_str(self):
val = self.args[0]
result = "%s failed: %s" % (val.routine(),
status_code.to_string(val.code()).lower().replace("_", " "))
status_code.to_string(val.code(), "<unknown error %d>")
.lower().replace("_", " "))
if val.what():
result += " - " + val.what()
return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment