hsolbrig / PyShEx

ShEx interpreter for ShEx 2.0
Creative Commons Zero v1.0 Universal
25 stars 10 forks source link

Error reporting doesn't provide enough info when it comes to BNodes #35

Closed hsolbrig closed 5 years ago

hsolbrig commented 5 years ago

The message:

Errors:
  Focus: http://hl7.org/fhir/Observation/example-haplotype2
  Start: N37a8da033a1946dfbd86fe2fd8d4ceef
  Reason:   Datatype constraint (http://www.w3.org/2001/XMLSchema#string) on BNode

doesn't carry enough information to know what really happened

hsolbrig commented 5 years ago

Closer examination reveals that we'd put a whole layer of error reporting in that didn't fully get realized because of direct stores to context.current_node.fail_reason. Fixing this should giv us a whole lot more detail.