Catch and handle parsing errors from detective, add filename in error message.