Detailed error messages won't be shown if line has no trailing line break
athos opened this issue · 0 comments
athos commented
(pg/parse-string "{{#foo}}")
;; Execution error (ExceptionInfo) at pogonos.error/error (error.cljc:52).
;; Missing section-end tag {{/foo}}
This is in contrast to:
(pg/parse-string "{{#foo}}\n")
;; Execution error (ExceptionInfo) at pogonos.error/error (error.cljc:52).
;; Missing section-end tag {{/foo}} (1:9):
;;
;; 1| {{#foo}}
;; ^^
Note that this will not happen except for the section-start tag:
(pg/parse-string "{{foo\n")
;; Execution error (ExceptionInfo) at pogonos.error/error (error.cljc:52).
;; Missing closing delimiter "}}" (1:6):
;;
;; 1| {{foo
;; ^^
(pg/parse-string "{{/foo}}")
;; Execution error (ExceptionInfo) at pogonos.error/error (error.cljc:52).
;; Expected {{/.}} tag, but got {{/foo}} (1:1):
;;
;; 1| {{/foo}}
;; ^^