improved file error message