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

Improve error message when input path doesn't exist #2092

Merged
merged 1 commit into from
May 15, 2023

Conversation

paulcadman
Copy link
Collaborator

Previously if you call Juvix on a file that doesn't exist you get the error:

$ juvix compile /i/don't/exist.juvix
juvix: /i/dont: changeWorkingDirectory: does not exist (No such file or directory)

After this change you will see:

$ juvix compile /i/don't/exist.juvix
The input path "/i/dont/exist.juvix" does not exist

@paulcadman paulcadman added the CLI label May 12, 2023
@paulcadman paulcadman added this to the 0.3.4 milestone May 12, 2023
@paulcadman paulcadman self-assigned this May 12, 2023
@paulcadman paulcadman force-pushed the improve-missing-input-file-error branch from fd250cc to 1158b3c Compare May 12, 2023 20:08
@paulcadman paulcadman added the enhancement New feature or request label May 12, 2023
Previously if you call Juvix on a file that doesn't exist you get the
error:

```
$ juvix compile /i/dont/exist
juvix: /i/dont/exist: changeWorkingDirectory: does not exist (No such file or directory)
```

After this change you will see:

```
$ juvix compile /i/dont/exist
The input path "/i/dont/" does not exist
```
@paulcadman paulcadman force-pushed the improve-missing-input-file-error branch from 1158b3c to 5ed9d36 Compare May 15, 2023 08:01
@jonaprieto jonaprieto merged commit 8eb4c64 into main May 15, 2023
@jonaprieto jonaprieto deleted the improve-missing-input-file-error branch May 15, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants