New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Included journals get a different error reporting #660

Closed
ony opened this Issue Nov 30, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@ony
Collaborator

ony commented Nov 30, 2017

I never got a nice error reports for my journal and I realized that only after making some improvements in reporting of parser expectations.

zsh% hledger reg -f invalid.journal 
hledger: /tmp/ws/invalid.journal:1:1:
unexpected 'i'
expecting end of input or transaction or directive

zsh% hledger reg -f - <<< 'include invalid.journal' 
hledger: SourcePos {sourceName = "-", sourceLine = Pos 2, sourceColumn = Pos 1} in included file "invalid.journal":
ParseError {errorPos = SourcePos {sourceName = "./invalid.journal", sourceLine = Pos 1, sourceColumn = Pos 2} :| [], errorUnexpected = fromList [Tokens ('n' :| "")], errorExpected = fromList [], errorCustom = fromList []}

@ony ony added A BUG easy? labels Nov 30, 2017

ony added a commit to ony/hledger that referenced this issue Dec 3, 2017

@ony ony self-assigned this Dec 3, 2017

ony added a commit to ony/hledger that referenced this issue Dec 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment