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

Better error message when file not found #24

Open
finestructure opened this issue Mar 14, 2019 · 1 comment
Open

Better error message when file not found #24

finestructure opened this issue Mar 14, 2019 · 1 comment

Comments

@finestructure
Copy link
Owner

With docker we're getting the following when the .file(..) path is invalid:

$ docker run --rm -it -v $PWD:/host -w /host --network host finestructure/rester multipart.yml
🚀  Resting multipart.yml ...

🎬  login started ...

✅  login PASSED (0s)

🎬  contract started ...

id: "8e29e732-36f3-4bc4-923d-5e453729fe41"

✅  contract PASSED (0s)

🎬  document started ...

❌  Error: The operation could not be completed (NSPOSIXErrorDomain.2)
@finestructure
Copy link
Owner Author

On macOS this is correctly handled:

🎬  document started ...

❌  Error: The file “foo.png” couldn’t be opened because there is no such file.

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

No branches or pull requests

1 participant