-
Notifications
You must be signed in to change notification settings - Fork 103
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
Trying to parsefile
an empty file triggers mmap exception
#98
Comments
It looks like this may be a bug (or unavoidable limitation? but it seems avoidable) in |
An empty file is not valid JSON (see e.g. https://bugs.php.net/bug.php?id=68938), but the error could obviously be improved, and we should also throw an error for an empty string. |
It was bad design/laziness on my part that led to even triggering this, but yeah, probably not the right error. |
The error message is now
Which is easier to guess about, at least |
The way we handle this in Base is |
With JuliaLang/julia@a6f4615 and #140, the error message would become:
which I think is quite reasonable. |
The text was updated successfully, but these errors were encountered: