Skip to content

Commit faa65fc

Browse files
committed
Extend error message
1 parent a34f77f commit faa65fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bpython/config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,10 @@ def loadini(struct, config_path):
194194
except UnicodeDecodeError as e:
195195
sys.stderr.write(
196196
"Error: Unable to parse config file at '{}' due to an "
197-
"encoding issue. Please make sure to fix the encoding "
198-
"of the file or remove it and then try again.\n".format(config_path)
197+
"encoding issue ({}). Please make sure to fix the encoding "
198+
"of the file or remove it and then try again.\n".format(
199+
config_path, e
200+
)
199201
)
200202
sys.exit(1)
201203

0 commit comments

Comments
 (0)