Browse Source

stack on ingest

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

13
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

Loading…
Cancel
Save