-
Notifications
You must be signed in to change notification settings - Fork 841
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
Specifying non-existing resolver results in StatusCodeException (404) #434
Comments
That would be nice! |
@chrisdone, I would like to hack on this. The failure lies in $logDebug $ "Downloading build plan from: " <> url
_ <- download req fp I guess simply catching the exception and displaying error message would be good enough. |
It could return a |
Although catching the exception and throwing a build-plan-specific exception is fine. |
@chrisdone Hmm. Having something like: -- | Same as 'download' but catching StatusCodeException and returning 'Status'
downloadWithStatus :: _ -> _ -> _ (Either Status Bool) might be useful not only for this case. |
The old behaviour is described in commercialhaskell#434 The new behavior looks as follows: Downloading lts-42.0 build plan ...SnapshotNotFound "lts-42.0" Non existing resolver: "lts-42.0". For a complete list of available snapshots see https://www.stackage.org/snapshots
Steps to reproduce:
- resolver: 42.0
instack.yaml
stack build
Output:
I think it would be better if more user-friendly error message was displayed. Something like:
Do we need such improvement?
The text was updated successfully, but these errors were encountered: