fix line number computation
fix bad test
Merge pull request #606 from marcello3d/better-errors

Better errors into dev