diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-09 13:40:48 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-09 13:40:48 +0000 |
commit | 5c19d3bd261756378727927b8bf478ebd691275e (patch) | |
tree | 0a24240be93d120bd95465448cfc77030fce35f1 | |
parent | e7fde21c2d9a9ded818726ceeb7cac291edf03fa (diff) | |
download | brdo-5c19d3bd261756378727927b8bf478ebd691275e.tar.gz brdo-5c19d3bd261756378727927b8bf478ebd691275e.tar.bz2 |
- Patch #792716 by catch: more useful field exception message.
-rw-r--r-- | modules/field/field.crud.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/field/field.crud.inc b/modules/field/field.crud.inc index f6c743c0a..904e69d26 100644 --- a/modules/field/field.crud.inc +++ b/modules/field/field.crud.inc @@ -1105,7 +1105,7 @@ function field_purge_instance($instance) { function field_purge_field($field) { $instances = field_read_instances(array('field_id' => $field['id']), array('include_deleted' => 1)); if (count($instances) > 0) { - throw new FieldException("Attempt to purge a field that still has instances."); + throw new FieldException("Attempt to purge a field, @field_name that still has instances.", array('@field_name' => $field['field_name'])); } db_delete('field_config') |