Skip to content

Commit

Permalink
Merge pull request #1514 from billsacks/modify_via_xml_error_msg
Browse files Browse the repository at this point in the history
Improve error messages for modify_via_xml and cannot_modify_by_user_nl
Test suite: Manual test
Test baseline: N/A
Test namelist changes: N/A
Test status: bit for bit

Fixes #1430

User interface changes?: none

Code review:jedwards
  • Loading branch information
jedwards4b authored May 10, 2017
2 parents 9d865d5 + 6a50313 commit 6ebd989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/lib/CIME/XML/namelist_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ def _user_modifiable_in_variable_definition(self, name):
user_modifiable_only_by_xml = node.get('modify_via_xml')
if user_modifiable_only_by_xml is not None:
expect(False,
"Cannot change %s in user_nl_xxx file, %s" %(name, user_modifiable_only_by_xml))
"Cannot change %s in user_nl file: set via xml variable %s" %(name, user_modifiable_only_by_xml))
user_cannot_modify = node.get('cannot_modify_by_user_nl')
if user_cannot_modify is not None:
expect(False,
"Cannot change %s in user_nl_xxx file, %s" %(name, user_cannot_modify))
"Cannot change %s in user_nl file: %s" %(name, user_cannot_modify))

def validate(self, namelist,filename=None):
"""Validate a namelist object against this definition.
Expand Down

0 comments on commit 6ebd989

Please sign in to comment.