summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Ziegler // fago2018-02-14 14:53:14 (GMT)
committerWolfgang Ziegler // fago2018-02-14 14:53:14 (GMT)
commit044cbb31d94989466790801e40c17154de789216 (patch)
tree58503deb7348076f93f744b1aad1dbc4cc302662
parentd50db77d1575be2cd37307a92feb889dc292dbdb (diff)
Improve debug output of entity metadata wrapper exceptions.HEAD7.x-1.97.x-1.x
-rw-r--r--includes/entity.wrapper.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/entity.wrapper.inc b/includes/entity.wrapper.inc
index 70c14c1..860d2c3 100644
--- a/includes/entity.wrapper.inc
+++ b/includes/entity.wrapper.inc
@@ -121,7 +121,7 @@ abstract class EntityMetadataWrapper {
if (!$this->validate($value)) {
throw new EntityMetadataWrapperException(t('Invalid data value given. Be sure it matches the required data type and format. Value at !location: !value.', array(
// An exception's message is output through check_plain().
- '!value' => is_array($value) || is_object($value) ? var_export($value) : $value,
+ '!value' => is_array($value) || is_object($value) ? var_export($value, TRUE) : $value,
'!location' => $this->debugIdentifierLocation(),
)));
}
@@ -755,7 +755,7 @@ class EntityDrupalWrapper extends EntityStructureWrapper {
if (!$this->validate($value)) {
throw new EntityMetadataWrapperException(t('Invalid data value given. Be sure it matches the required data type and format. Value at !location: !value.', array(
// An exception's message is output through check_plain().
- '!value' => is_array($value) || is_object($value) ? var_export($value) : $value,
+ '!value' => is_array($value) || is_object($value) ? var_export($value, TRUE) : $value,
'!location' => $this->debugIdentifierLocation(),
)));
}