Add the error message to the log