unison
unison copied to clipboard
Summarize unexpected server responses
When we hit an unexpected server response, summarize it with the status code, status message and the response body instead of dumping the raw Haskell data-structures.
This fixes https://github.com/unisonweb/unison/issues/5341 though I think we should probably log the actual request and response to a file somewhere.
Excuse my poor haskell here—this is more of a draft than anything, as I'm not sure what the appropriate style is.