Skip to content

Commit

Permalink
Merge pull request #1440 from jedwards4b/better_msg_for_config_files_…
Browse files Browse the repository at this point in the history
…not_found

improve error message when config_files.xml is not found

If CIME_MODEL is set incorrectly the current error message from scripts_regression_tests.py is obscure, this error somewhat clarifies the problem.
Test suite: hand testing
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes

User interface changes?:

Code review:
  • Loading branch information
jgfouca authored May 1, 2017
2 parents 1089e53 + 035d372 commit aa9018a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/lib/CIME/XML/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def __init__(self):
"""
cimeroot = get_cime_root()
infile = os.path.join(cimeroot, "config", get_model(), "config_files.xml")
expect(os.path.isfile(infile), "Could not find or open file %s"%infile)
schema = os.path.join(cimeroot, "config", "xml_schemas", "entry_id.xsd")
EntryID.__init__(self, infile, schema=schema)

Expand Down

0 comments on commit aa9018a

Please sign in to comment.