Added line numbers to error logs.