dataflux 1.19.6 → 1.19.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Store.js CHANGED
@@ -480,9 +480,9 @@ var Store = exports["default"] = /*#__PURE__*/function () {
480
480
  var _this1 = this;
481
481
  var ifLoaded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
482
482
  if (!this.models[type]) {
483
- return Promise.reject("The model doesn't exist");
483
+ return Promise.reject("The model ".concat(type, " doesn't exist"));
484
484
  } else if (!this.models[type].promise && !this.options.lazyLoad) {
485
- return Promise.reject("The model is not loaded");
485
+ return Promise.reject("The model ".concat(type, " is not loaded"));
486
486
  } else if (!this.models[type].promise && this.options.lazyLoad && !ifLoaded) {
487
487
  return _assertClassBrand(_Store_brand, this, _loadObjects).call(this, type).then(function () {
488
488
  return _this1.models[type].promise;