add error message to logging