fix handling of @callback error logging