Skip to content

Commit

Permalink
ARC-1700: Wrap error.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrichner-oviva committed May 23, 2024
1 parent dca7c5d commit adc7fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func main() {
func Parse(sourceName string, r io.Reader) (Node, error) {
b, err := io.ReadAll(r)
if err != nil {
return nil, fmt.Errorf("failed to read schema %s", sourceName)
return nil, fmt.Errorf("failed to read schema %s: %w", sourceName, err)
}

rawRoot := parser.Parse(createAstNode, input.Source(sourceName), string(b))
Expand Down

0 comments on commit adc7fde

Please sign in to comment.