Problem/Motivation
If there is an entity storage exception thrown during module install, the watchdog_exception() is missing a replacement for the !message placeholder, so the exception message is not shown or logged.
Steps to reproduce
Using drush, install Drupal using a profile that installs Contact Storage 8.x-1.1.
Note error messages:
[error] An error occurred while notifying the creation of the id field storage definition: "!message" in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1615 of /vagrant/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
[error] An error occurred while notifying the creation of the created field storage definition: "!message" in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1615 of /vagrant/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
[error] An error occurred while notifying the creation of the uid field storage definition: "!message" in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1615 of /vagrant/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
[error] An error occurred while notifying the creation of the ip_address field storage definition: "!message" in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1615 of /vagrant/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Proposed resolution
Set exception message $e->getMessage() as replacement for !message placeholder.
Remaining tasks
User interface changes
N/A
API changes
N/A
Data model changes
N/A