Skip to content
Snippets Groups Projects
Commit 3275706a authored by juanf's avatar juanf
Browse files

SSDM-13422: Better error messages

parent dd845422
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -62,7 +62,7 @@ def process(context, parameters): ...@@ -62,7 +62,7 @@ def process(context, parameters):
tempPath = singleFile.getAbsolutePath() tempPath = singleFile.getAbsolutePath()
byteArrays = MasterDataRegistrationHelper.getByteArrays(Path.of(tempPath), ".xls") byteArrays = MasterDataRegistrationHelper.getByteArrays(Path.of(tempPath), ".xls")
if len(byteArrays) == 0: if len(byteArrays) == 0:
raise UserFailureException('No .xls or .xlsx fields found. These should be on the root folder of the zip file.') raise UserFailureException('No .xls or .xlsx files found on the root folder of the zip file. This error could be caused by the way the zip file was generated.')
parameters.put('xls', byteArrays) parameters.put('xls', byteArrays)
allScripts = MasterDataRegistrationHelper.getAllScripts(Path.of(tempPath)) allScripts = MasterDataRegistrationHelper.getAllScripts(Path.of(tempPath))
parameters.put('scripts', allScripts) parameters.put('scripts', allScripts)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment