handle error message
include record in log message