add filename into error message in compile

for debug, fixed #31