lib: log error for file:// in config
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
363aed2a47
commit
121b36f35f
|
@ -83,8 +83,8 @@ class ConfigLoader:
|
||||||
try:
|
try:
|
||||||
with open(url.path, "r", encoding="utf8") as _file:
|
with open(url.path, "r", encoding="utf8") as _file:
|
||||||
value = _file.read()
|
value = _file.read()
|
||||||
except OSError:
|
except OSError as exc:
|
||||||
self._log("error", f"Failed to read config value from {url.path}")
|
self._log("error", f"Failed to read config value from {url.path}: {exc}")
|
||||||
value = url.query
|
value = url.query
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
Reference in a new issue