-
Notifications
You must be signed in to change notification settings - Fork 271
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 receiving unexpected server responses #5341
Comments
The error message in the report is truncated. Crucially, it includes this line:
I think that ucm should definitely handle this case better (so it doesn't lead to an HTTP error). But I think that I disagree that removing the details of the request results is improving the error message. This is a tool used solely by software developers; they are probably familiar with HTTP and the details might help them provide a better error message for a bug report (if not address the issue themself). |
@ceedubs I'm happy to include the response body in the error message. My general goal here is to not dump Haskell data structures. While our users are developers they are not all Haskell developers and they are also not familiar with the intricacies of our systems (and shouldn't need to be to successfully write unison code). In this case I think we should also parse the project name before even sending the request and give an appropriate contextual error. |
Suggestion including the response body:
|
Note, that while this example shows a specific command that could have a dedicated error message, this suggested ticket is about improving the unexpected server response message generally.
What's the message you're seeing?
Please paste from your terminal or paste a screenshot, e.g:
What would a better version look like?
The text was updated successfully, but these errors were encountered: