I was initially taking that approach but that gave a pretty large change since returning Error from parseFileName wouldn't have type checked. Refactored a bit more in fix that I just pushed.