Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MAINT: better error message for missing process name in AMD
  • Loading branch information
pebert committed May 23, 2018
1 parent c96feef commit c73efaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validation/mdvalid.py
Expand Up @@ -416,8 +416,8 @@ def check_analysis_metadata(process, processname, processver, analysis, args):
errlog().debug('Checking analysis metadata')
proc_re = re.compile("^" + processname + "(v|ver|version)?" + processver + "$", re.IGNORECASE)
if not any([proc_re.search(v) is not None for v in analysis[PROCESS_NAME_IN].values()]):
errlog().error('Cannot find process name {}'
' in analysis metadata section {}'.format(processname, PROCESS_NAME_IN))
errlog().error('Cannot find process name {}v{}'
' in analysis metadata section "{}"'.format(processname, processver, PROCESS_NAME_IN))
retcode = 1
else:
errlog().debug('Checking filetype identifiers')
Expand Down Expand Up @@ -578,7 +578,7 @@ def validate_files(files, schema, encoding, args):
retcode = 1
finally:
status = 'FAIL' if retcode > 0 else 'OK'
outlog().info('{}: [XML] {} | [AMD] {}'.format(status, os.path.basename(xmlfile), os.path.basename(amdfile)))
outlog().info('{}: [XML] {} | [AMD] {}\n====='.format(status, os.path.basename(xmlfile), os.path.basename(amdfile)))
return retcode


Expand Down

0 comments on commit c73efaf

Please sign in to comment.