Log an error message.
element – The element that caused the error
message – The message
The message with the line number