theprogrammablemind 8.0.0-beta.79 → 8.0.0-beta.80
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/package.json +1 -1
- package/src/configHelpers.js +8 -1
package/package.json
CHANGED
package/src/configHelpers.js
CHANGED
@@ -309,11 +309,18 @@ const processContextsB = async ({ config, hierarchy, semantics, generators, json
|
|
309
309
|
if (isInstance) {
|
310
310
|
console.log('error', e.error)
|
311
311
|
}
|
312
|
+
let reason = e.reason
|
313
|
+
if (!reason) {
|
314
|
+
if (e.error) {
|
315
|
+
reason = e.error[0]
|
316
|
+
}
|
317
|
+
}
|
312
318
|
contextPrime = await semantics.apply(args, {
|
313
319
|
marker: 'error',
|
314
320
|
context,
|
315
321
|
text: e ? e.toString() : 'not available',
|
316
|
-
reason: e.
|
322
|
+
// reason: e.reason,
|
323
|
+
reason,
|
317
324
|
error: e.stack || e.error
|
318
325
|
})
|
319
326
|
if (rebuildingTemplate) {
|