Skip to content
Snippets Groups Projects
Commit ff0530cc authored by Malcolm Young's avatar Malcolm Young Committed by Shashank Kumar
Browse files

Issue #3371949: Log exceptions

parent 986397ec
No related branches found
No related tags found
1 merge request!23Issue #3371949: Log exceptions
......@@ -105,6 +105,7 @@ class TwilioAdminTestForm extends FormBase {
$this->messenger()->addStatus($this->t('Attempted to send SMS message. Check your receiving device.'));
}
catch (\Exception $e) {
$this->logger('twilio')->error($e->getMessage());
$this->messenger()->addError($this->t('An error occurred while attempting to send the SMS message. Please try again later.'));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment