# HG changeset patch # User Laurent Peuch # Date 1575567799 -3600 # Node ID 4a98b93ac5aca45401e70b66db3a41f54ac99806 # Parent 9b809497978f451c40bc3c78d5660c1367f93d2b [UX] make error message explicit with useful information diff -r 9b809497978f -r 4a98b93ac5ac cubicweb/server/sqlutils.py --- a/cubicweb/server/sqlutils.py Thu Dec 05 18:41:32 2019 +0100 +++ b/cubicweb/server/sqlutils.py Thu Dec 05 18:43:19 2019 +0100 @@ -278,8 +278,9 @@ try: self.dbdriver = source_config['db-driver'].lower() dbname = source_config['db-name'] - except KeyError: - raise ConfigurationError('missing some expected entries in sources file') + except KeyError as e: + raise ConfigurationError('missing some expected entries in sources file (do you have ' + 'a db-driver and a db-name keys?), error: %s' % e) dbhost = source_config.get('db-host') port = source_config.get('db-port')