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 CHANGED
@@ -65,6 +65,6 @@
65
65
  "sort-json": "^2.0.0",
66
66
  "uuid": "^8.3.2"
67
67
  },
68
- "version": "8.0.0-beta.79",
68
+ "version": "8.0.0-beta.80",
69
69
  "license": "UNLICENSED"
70
70
  }
@@ -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.error ? e.error[0] : e.reason,
322
+ // reason: e.reason,
323
+ reason,
317
324
  error: e.stack || e.error
318
325
  })
319
326
  if (rebuildingTemplate) {