Improve parse error message

Informe line and file in the error message.

This commit is a little big due the use different directories
for samples and tests.