Skip to content

Commit feec0b6

Browse files
committed
Fix instaparse marker handling
The failure/marker function now expect both text and column with recent versions.
1 parent b702865 commit feec0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/puppetlabs/puppetdb/pql.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"Takes an augmented failure object and prints the error message"
4141
[{:keys [line column text reason]}]
4242
(let [opening (tru "PQL parse error at line {0}, column {1}:\n\n{2}\n{3}\n\n"
43-
line column text (failure/marker column))
43+
line column text (failure/marker text column))
4444
full-reasons (distinct (map :expecting
4545
(filter :full reason)))
4646
partial-reasons (distinct (map :expecting

0 commit comments

Comments
 (0)