-
Hi. Is it possible to get errors in a structured form? Similar to here: https://stackoverflow.com/a/26919119/4249433 {
"message": "Expected \"AND\", \"ORDER BY\" or end of input but \"A\" found.",
"expected": [
{
"type": "literal",
"value": "AND",
"description": "\"AND\""
},
{
"type": "literal",
"value": "ORDER BY",
"description": "\"ORDER BY\""
},
{
"type": "end",
"description": "end of input"
}
],
"found": "A",
"offset": 9,
"line": 1,
"column": 10,
"name": "SyntaxError"
} I'm considering using Peggy for auto-completion and would need this to implement. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
Mingun
Jul 24, 2024
Replies: 2 comments
-
Emm?? Errors always was in structured form: Lines 639 to 675 in 4036dab |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hildjj
-
Perfect. Thanks. Should have tried it. Apologies.
El mié, 24 de jul de 2024, 12:08, Mingun ***@***.***>
escribió:
… Emm?? Errors always was in structured form:
https://github.com/peggyjs/peggy/blob/4036dabd40bdb318876ba0f3ac6fd5b0ae317176/lib/peg.d.ts#L639-L675
—
Reply to this email directly, view it on GitHub
<#541 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADKPDUCISP4HVHNRZREWY3ZN67NFAVCNFSM6AAAAABLMMAPB2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJTHEZDEMA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Emm?? Errors always was in structured form:
peggy/lib/peg.d.ts
Lines 639 to 675 in 4036dab