Permalink
Browse files

Improve the error message when the error is unknown

  • Loading branch information...
1 parent 60e0506 commit ec6b90ffa982e5951efcf0d6458c5c8de1c3dc77 @ant0ine ant0ine committed Oct 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ddlockclient/__init__.py
View
2 ddlockclient/__init__.py
@@ -137,7 +137,7 @@ def _trylock(self, name):
except DDLockError, e:
self.errmsg = str(e)
except Exception, e:
- self.errmsg = "Unknown failure"
+ self.errmsg = "Unknown failure: %s" % str(e)
return lock

0 comments on commit ec6b90f

Please sign in to comment.