fixed error filename/line when an error occurs in an included file

fixed #1141