Include file name in error message if parsing fails

Suggested by @wjwwood in #2