pepper icon indicating copy to clipboard operation
pepper copied to clipboard

Show detail on API error

Open alexntt opened this issue 6 years ago • 1 comments

On pepper/libpepper.py, we have:

        except (HTTPError, URLError) as exc:
            logger.debug('Error with request', exc_info=True)
...
            if status == 500:
                raise PepperException('Server error.')

Could the PepperException show some details on what's happened? I see that there's some debug information printed out, but ideally PepperException should provide more details to the caller.

alexntt avatar Apr 09 '18 15:04 alexntt

Yes, we should log the error message if the status is 500.

gtmanfred avatar May 21 '18 14:05 gtmanfred