provokateurin / dart-nextcloud

A Nextcloud client for dart
Other
20 stars 15 forks source link

Added `toString` to `RequestException` #64

Closed timosturm closed 2 years ago

timosturm commented 2 years ago

This improves usability of the library by providing necessary information for fixing the cause of the exception.

Before:

Unhandled exception:
Instance of 'RequestException'
[...]

After:

Unhandled exception:
RequestException{method: GET, url: http://example.com, statusCode: 500, body: myBody}
[...]
provokateurin commented 2 years ago

Fixed in https://github.com/jld3103/nextcloud-harbour/tree/7951dc263975e000b83ddb1d703d8cbfaead1180/packages/nextcloud