Browse Source

ingest form watchdog

pull/417/head
William Panting 11 years ago
parent
commit
13f73878b6
  1. 6
      includes/ingest.form.inc

6
includes/ingest.form.inc

@ -57,6 +57,12 @@ function islandora_ingest_form(array $form, array &$form_state, array $configura
return islandora_ingest_form_execute_step($form, $form_state); return islandora_ingest_form_execute_step($form, $form_state);
} }
catch (Exception $e) { catch (Exception $e) {
watchdog(
'islandora',
'Exception during ingest form processing with Message: "@exception", and Trace: @trace',
array('@exception' => $e->getMessage(), '@trace' => $e->getTraceAsString()),
WATCHDOG_ERROR
);
drupal_set_message($e->getMessage(), 'error'); drupal_set_message($e->getMessage(), 'error');
return array(array( return array(array(
'#markup' => l(t('Back'), 'javascript:window.history.back();', array('external' => TRUE)))); '#markup' => l(t('Back'), 'javascript:window.history.back();', array('external' => TRUE))));

Loading…
Cancel
Save