added filename to error message