Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / quickedit / js / quickedit.es6.js
index 84fee16cdfd59accb8d5785bd6b5e7199a415126..ba742033fcac818a83753b7ec07bed0a066c7ca4 100644 (file)
     // If there are no elements returned from `entityElementSelector`
     // throw an error. Check the browser console for this message.
     if (!$entityElement.length) {
-      throw `Quick Edit could not associate the rendered entity field markup (with [data-quickedit-field-id="${fieldID}"]) with the corresponding rendered entity markup: no parent DOM node found with [data-quickedit-entity-id="${entityID}"]. This is typically caused by the theme's template for this entity type forgetting to print the attributes.`;
+      throw new Error(`Quick Edit could not associate the rendered entity field markup (with [data-quickedit-field-id="${fieldID}"]) with the corresponding rendered entity markup: no parent DOM node found with [data-quickedit-entity-id="${entityID}"]. This is typically caused by the theme's template for this entity type forgetting to print the attributes.`);
     }
     let entityElement = $(fieldElement).closest($entityElement);