Added error messages with line number when using -debug in console