@shaclmate/shacl-ast 4.0.40 → 4.0.41

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.
@@ -64,7 +64,9 @@ export class AbstractShapesGraph {
64
64
  : Left(new Error(`no such property shape ${identifier}`));
65
65
  }
66
66
  shape(identifier) {
67
- return this.nodeShape(identifier).alt(this.propertyShape(identifier));
67
+ return this.nodeShape(identifier)
68
+ .alt(this.propertyShape(identifier))
69
+ .mapLeft(() => new Error(`no such shape ${identifier}`));
68
70
  }
69
71
  /**
70
72
  * Convert the shapes graph to a dataset.