Skip to content

Commit 13ed54c

Browse files
committed
Better order for error messaging
1 parent d5c4b79 commit 13ed54c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ush/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ def load_config_for_setup(ushdir, default_config_path, user_config_path):
124124
if k in user_config[section]:
125125
errmsg+=f"\n{section}:{k} should be {section}:envvars:{k}"
126126
if errmsg:
127-
logger.critical("Found invalid variable(s) in user config:")
128-
raise ValueError(errmsg)
127+
raise ValueError("Found invalid variable(s) in user config:" + errmsg)
129128

130129
# Update default config with other loaded config file. Order matters.
131130
for cfg in (

0 commit comments

Comments
 (0)