Skip to content

Commit a93458b

Browse files
bandre-ucarbjandre
authored andcommitted
Add info to error message.
Add info to the error message when the configuration file could not be found. Suggests that the user verify they ran from the root of the source tree. Testing: make test - python2/3 - pass, 1 skip manual testing - escomp/cesm, clm-demo - ok
1 parent 7b7ca23 commit a93458b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manic/externals_description.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def read_externals_description_file(root_dir, file_name):
7171
file_path = os.path.join(root_dir, file_name)
7272
if not os.path.exists(file_name):
7373
msg = ('ERROR: Model description file, "{0}", does not '
74-
'exist at {1}'.format(file_name, file_path))
74+
'exist at path:\n {1}\nDid you run from the root of '
75+
'the source tree?'.format(file_name, file_path))
7576
fatal_error(msg)
7677

7778
externals_description = None

0 commit comments

Comments
 (0)