Skip to content

Commit

Permalink
Merge branch 'main' into kislyuk-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Mar 6, 2021
2 parents 21dd35b + 7f0d62c commit 80d919b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WDL/Error.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ def __str__(self) -> str:
elif isinstance(self.expected, Type.Int) and isinstance(self.actual, Type.Float):
msg += "; perhaps try floor() or round()"
elif str(self.actual).replace("?", "") == str(self.expected):
msg += " -- to coerce T? X into T, try select_first([X,defaultValue]) or select_first([X]) (which might fail at runtime)"
msg += (
" -- to coerce T? X into T, try select_first([X,defaultValue])"
" or select_first([X]) (which might fail at runtime)"
)
return msg


Expand Down

0 comments on commit 80d919b

Please sign in to comment.