summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2015-10-22 22:56:28 (GMT)
committerxjm2015-10-22 22:56:28 (GMT)
commitd6af6fc9644aec50c3579989e2c02167f6157e4a (patch)
treeb83d1f435246ddda7e1cdfa8f70195fa87b2d8d7
parent3a8cb0d5f679d69efde42161e809d3881df14a36 (diff)
Issue #2597548 by jhodgdon, tim.plunkett: Useless message thrown by SqlContentEntityStorage::wrapSchemaException()
-rw-r--r--core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
index 12184df..c59ed8f 100644
--- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
+++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
@@ -1453,9 +1453,11 @@ class SqlContentEntityStorage extends ContentEntityStorageBase implements SqlEnt
$callback();
}
catch (SchemaException $e) {
+ $message .= ' ' . $e->getMessage();
throw new EntityStorageException($message, 0, $e);
}
catch (DatabaseExceptionWrapper $e) {
+ $message .= ' ' . $e->getMessage();
throw new EntityStorageException($message, 0, $e);
}
}