Reset scanner lineno on each input
Clean up error messages