unison icon indicating copy to clipboard operation
unison copied to clipboard

Summarize unexpected server responses

Open hojberg opened this issue 1 year ago • 4 comments

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.

hojberg avatar Sep 11 '24 17:09 hojberg