improve exception handling
This commit is contained in:
@@ -15,8 +15,8 @@ function booking_admin()
|
|||||||
$sqlview_check = db_query("SELECT 1 FROM {booking_person_view}")->fetchAssoc();
|
$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)));
|
watchdog('booking_debug', "<pre>SQL View booking_person_view check\n@info</pre>", array('@info' => print_r( $sqlview_check, true)));
|
||||||
}
|
}
|
||||||
catch {
|
catch (Exception $e) {
|
||||||
watchdog('booking_debug', "SQL View booking_person_view check does not exist");
|
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();
|
_booking_node_create_mysqlview();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user