Added filename as part of the error reporting.