improve exception handling

This commit is contained in:
2016-06-01 22:13:28 +10:00
parent 449605a67d
commit 2d21af7d2f

View File

@@ -15,8 +15,8 @@ function booking_admin()
$sqlview_check = db_query("SELECT 1 FROM {booking_person_view}")->fetchAssoc();
watchdog('booking_debug', "<pre>SQL View booking_person_view check\n@info</pre>", array('@info' => print_r( $sqlview_check, true)));
}
catch {
watchdog('booking_debug', "SQL View booking_person_view check does not exist");
catch (Exception $e) {
watchdog('booking_debug', "<pre>SQL View booking_person_view check does not exist\n@info</pre>", array('@info' => print_r( $e, true)));
_booking_node_create_mysqlview();
}
/*