summaryrefslogtreecommitdiffstats
path: root/layman/db.py
diff options
context:
space:
mode:
authordol-sen <brian.dolbec@gmail.com>2011-04-29 23:36:40 -0700
committerdol-sen <brian.dolbec@gmail.com>2011-04-29 23:36:40 -0700
commite3bee4b35df8cc63e84a54a512020ee895ae5dfe (patch)
tree6f09b128d8398b009ee6fa70127e5eafb35af0a8 /layman/db.py
parent51424bf1f0aa7734dfc45672a5c6ae9ef10cbb6e (diff)
downloadlayman-e3bee4b35df8cc63e84a54a512020ee895ae5dfe.tar.gz
layman-e3bee4b35df8cc63e84a54a512020ee895ae5dfe.tar.bz2
layman-e3bee4b35df8cc63e84a54a512020ee895ae5dfe.zip
Add the module and function to the error message for better tracking of the problem.
Diffstat (limited to 'layman/db.py')
-rw-r--r--layman/db.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/layman/db.py b/layman/db.py
index aaba2b7..d078e46 100644
--- a/layman/db.py
+++ b/layman/db.py
@@ -212,7 +212,8 @@ class DB(DbBase):
result = overlay.sync(self.config['storage'], quiet)
if result:
raise Exception('Syncing overlay "' + overlay_name +
- '" returned status ' + str(result) + '!')
+ '" returned status ' + str(result) + '!' +
+ '\ndb.sync()')
#===============================================================================
#