From 2d21af7d2f1728a5be42b5c7f7df2a84dafe6f75 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Wed, 1 Jun 2016 22:13:28 +1000 Subject: [PATCH] improve exception handling --- booking.admin.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/booking.admin.inc b/booking.admin.inc index 4f19b8e..11af2da 100644 --- a/booking.admin.inc +++ b/booking.admin.inc @@ -15,8 +15,8 @@ function booking_admin() $sqlview_check = db_query("SELECT 1 FROM {booking_person_view}")->fetchAssoc(); watchdog('booking_debug', "
SQL View booking_person_view check\n@info
", 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', "
SQL View booking_person_view check does not exist\n@info
", array('@info' => print_r( $e, true))); _booking_node_create_mysqlview(); } /*