jhedstrom / DrupalDriver

A collection of drivers for controlling Drupal.
GNU General Public License v2.0
64 stars 95 forks source link

Uninformative error handling with unknown entity/bundle types #118

Open jonathanjfshaw opened 7 years ago

jonathanjfshaw commented 7 years ago

The new EntityContext (and possibly pre-existing code) don't provide very informative errors if the entity or bundle doesn't exist. (Run entity.feature against aa Drupal 8 installation using the Minimal profile to see examples).

Instead you get a lot of: Catchable Fatal Error: Object of class stdClass could not be converted to string in vendor/drupal/drupal-driver/src/Drupal/Driver/Cores/Drupal8.php line 438

jonathanjfshaw commented 6 years ago

Fixed by #157