Skip to content
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

friendlier error message for empty files #330

Merged
merged 1 commit into from
Aug 8, 2022
Merged

Conversation

leque
Copy link
Contributor

@leque leque commented Jul 30, 2022

This PR attempts to fix #270.

Error message will be changed as below (last line):

$ touch e.saty
$ ./satysfi e.saty
 ---- ---- ---- ----
  target file: 'e.pdf'
  dump file: 'e.satysfi-aux' (will be created)
  parsing 'e.saty' ...
! [Syntax Error at Parser] at "e.saty", line 1, characters 0-0:
    empty input

@gfngfn
Copy link
Owner

gfngfn commented Aug 8, 2022

Confirmed that the modified version works. Thanks!

@gfngfn gfngfn merged commit f057eff into gfngfn:master Aug 8, 2022
@leque leque deleted the fix-270 branch August 12, 2022 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inputting an empty file leads to an unfriendly message
2 participants