@calcit/procs 0.29.0-alpha.2 → 0.29.0-alpha.4
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/lib/calcit.procs.mjs +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/calcit.procs.mjs
CHANGED
|
@@ -224,7 +224,7 @@ export let _$n_trait_$o__$o_new = function (name, methods, parents) {
|
|
|
224
224
|
const requires = parents == null ? [] : list_items(parents);
|
|
225
225
|
for (const parent of requires) {
|
|
226
226
|
if (!(parent instanceof CalcitTrait)) {
|
|
227
|
-
throw new Error(`trait ${toString(name, false)}
|
|
227
|
+
throw new Error(`trait ${toString(name, false)}: each requires entry must be a trait, but received: ${toString(parent, true)}`);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
const traitDef = new CalcitTrait(name, methodNames, methodTypes, requires);
|
package/lib/package.json
CHANGED