error reporting with line number