Skip to content

Commit

Permalink
#58: Added more helpful error message
Browse files Browse the repository at this point in the history
  • Loading branch information
creisle committed Feb 23, 2018
1 parent fa120ec commit 8ab7cda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mavis/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ def __init__(self, **kwargs):
self.convert[attr] = CONVERT_OPTIONS.type(attr)(val)
continue
val = [v for v in re.split(r'[;\s]+', val) if v]
if not val:
raise UserWarning('conversion tag requires arguments', attr)
if val[0] == 'convert_tool_output':
try:
val[-1] = tab.cast_boolean(val[-1])
Expand All @@ -314,7 +316,6 @@ def __init__(self, **kwargs):
raise UserWarning(
'conversion using the built-in convert_tool_output requires specifying the input file(s) and '
'tool name. currently supported tools include:', SUPPORTED_TOOL.values(), 'given', val)
inputs = []
for file_expr in val[1:-2]:
if not bash_expands(file_expr):
raise OSError('input file(s) do not exist', val[1:-2])
Expand Down

0 comments on commit 8ab7cda

Please sign in to comment.