log error message, not object