tb1337 / paperless-api

Little api client for paperless(-ngx).
https://pypi.org/p/pypaperless/
MIT License
31 stars 6 forks source link

Improve error message parsing #298

Closed tb1337 closed 2 months ago

tb1337 commented 2 months ago

In case of custom_fields errors, no meaningful error message was displayed. This PR will address this issue by adding a little recursive parser, as error payloads can be nested lists and dicts.

Will close #295

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.84%. Comparing base (e1f3670) to head (bfce6a5). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #298 +/- ## ========================================== + Coverage 97.78% 97.84% +0.05% ========================================== Files 47 34 -13 Lines 2124 1484 -640 Branches 267 197 -70 ========================================== - Hits 2077 1452 -625 + Misses 32 18 -14 + Partials 15 14 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.