defined p_error to print filename along with syntax error

Change-Id: I61bc3cc5e68a8e299a2ceb4bb3244ad3baca44c6