changeset 0ba6dd7d1c81 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=0ba6dd7d1c81
description:
Display the path of the database in error message
Instead of just the filename.
issue8995
review288881002
diffstat:
trytond/backend/sqlite/database.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r c235ae817e5d -r 0ba6dd7d1c81 trytond/backend/sqlite/database.py
--- a/trytond/backend/sqlite/database.py Wed Jan 29 00:03:40 2020 +0100
+++ b/trytond/backend/sqlite/database.py Wed Jan 29 00:05:32 2020 +0100
@@ -342,7 +342,7 @@
db_filename = self.name + '.sqlite'
path = os.path.join(config.get('database', 'path'), db_filename)
if not os.path.isfile(path):
- raise IOError('Database "%s" doesn\'t exist!' % db_filename)
+ raise IOError('Database "%s" doesn\'t exist!' % path)
if self._conn is not None:
return self
self._conn = sqlite.connect(path,