aboutsummaryrefslogtreecommitdiff
path: root/app/model
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2018-11-09 22:58:36 -0500
committerThedro Neely <thedroneely@gmail.com>2018-11-09 22:58:36 -0500
commit6104ed5310776c04057b69700c232fbc8a1714c5 (patch)
tree456d0172b1aa9f06feb679fc5278d5a097f58a39 /app/model
parent643f4d8b30d5b134ed72e36b8c4637985b31f077 (diff)
downloadthedroneely.com-6104ed5310776c04057b69700c232fbc8a1714c5.tar.gz
thedroneely.com-6104ed5310776c04057b69700c232fbc8a1714c5.tar.bz2
thedroneely.com-6104ed5310776c04057b69700c232fbc8a1714c5.zip
app/model/Form: Log errors instead of flashing user for now.
Diffstat (limited to 'app/model')
-rw-r--r--app/model/Form.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/model/Form.php b/app/model/Form.php
index 4e6d3f3..18ac634 100644
--- a/app/model/Form.php
+++ b/app/model/Form.php
@@ -1,6 +1,5 @@
<?php
-// PHP mailer namespace
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
@@ -78,8 +77,8 @@ class Form
//Send Mail
$mail->send();
- } catch (Exception $e) {
- include '../app/views/mail-error.view.php';
+ } catch (Exception $exception) {
+ log_exception($exception);
}
}
}