proper logging for submit.onerror case