From c73efaf32150397fab3c189031c8796fa441cc47 Mon Sep 17 00:00:00 2001 From: Peter Ebert Date: Wed, 23 May 2018 14:35:02 +0200 Subject: [PATCH] MAINT: better error message for missing process name in AMD --- validation/mdvalid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validation/mdvalid.py b/validation/mdvalid.py index 689510a..84e1b60 100644 --- a/validation/mdvalid.py +++ b/validation/mdvalid.py @@ -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') @@ -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