Skip to content

Commit af6769e

Browse files
committed
Add more metadata to errors from parse
1 parent 3ae42ec commit af6769e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/parser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export const parse = <Output>(
3434
remainingInput.length !== 0
3535
? either.makeLeft({
3636
input,
37+
output,
38+
remainingInput,
3739
message: 'excess content followed valid input',
3840
})
3941
: either.makeRight(output),

0 commit comments

Comments
 (0)