[config] include exception type in error message
This commit is contained in:
@@ -102,7 +102,8 @@ def load(files=None, strict=False, load=util.json_loads):
|
|||||||
log.error(exc)
|
log.error(exc)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
log.warning("Could not parse '%s': %s", path, exc)
|
log.error("%s when loading '%s': %s",
|
||||||
|
exc.__class__.__name__, path, exc)
|
||||||
if strict:
|
if strict:
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -6,4 +6,4 @@
|
|||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
# published by the Free Software Foundation.
|
# published by the Free Software Foundation.
|
||||||
|
|
||||||
__version__ = "1.25.4-dev"
|
__version__ = "1.26.0-dev"
|
||||||
|
|||||||
Reference in New Issue
Block a user