added line number to exception message