Closed benhoyt closed 1 month ago
Currently the Client.Pull method is immediately checking the content type for multipart, but we should also check for a regular API error. This PR fixes that.
Client.Pull
Before (in case of permission denied error):
$ pebble pull /etc/hosts hosts error: expected a multipart response, got "application/json"
After:
$ pebble pull /etc/hosts hosts error: access denied (try with sudo)
Fixes #413
Currently the
Client.Pull
method is immediately checking the content type for multipart, but we should also check for a regular API error. This PR fixes that.Before (in case of permission denied error):
After:
Fixes #413