From 963adbcc746dbc20f6d696257ac35bc8d1503a09 Mon Sep 17 00:00:00 2001 From: William Panting Date: Thu, 17 Oct 2013 14:19:02 -0300 Subject: [PATCH] stack on ingest --- includes/ingest.form.inc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/includes/ingest.form.inc b/includes/ingest.form.inc index 95944eb1..c2651e0e 100644 --- a/includes/ingest.form.inc +++ b/includes/ingest.form.inc @@ -771,8 +771,17 @@ function islandora_ingest_form_submit(array $form, array &$form_state) { catch (Exception $e) { // If post hooks throws it may already exist at this point but may be // invalid, so don't say failed. - watchdog('islandora', 'Exception Message: @exception.', array('@exception' => $e->getMessage()), WATCHDOG_ERROR); - drupal_set_message(t('A problem occured while ingesting "@label" (ID: @pid), please notifiy the administrator.', array('@label' => $object->label, '@pid' => $object->id)), 'error'); + watchdog( + 'islandora', + 'Exception Message: @exception. Trace: @trace', + array('@exception' => $e->getMessage(), '@trace' => $e->getTraceAsString()), + WATCHDOG_ERROR + ); + drupal_set_message( + t('A problem occured while ingesting "@label" (ID: @pid), please notifiy the administrator.', + array('@label' => $object->label, '@pid' => $object->id)), + 'error' + ); } } // XXX: Foreaching with references can be weird... The reference exists in