summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2020-05-14 21:24:03 +0100
committerEmīls <emils@mullvad.net>2020-05-14 21:24:03 +0100
commitf4a9b1de419520fb67dc4fdd7fca777389b93ba8 (patch)
treefaab24d089fbd78a3c3ceb4f141e28ab9a589fb6
parent78648a9f16ebaca1eaeb2525b25d2e42614e3e10 (diff)
parent6f612439d4aa415ce33e61d7131d93e93817c6b2 (diff)
downloadmullvadvpn-f4a9b1de419520fb67dc4fdd7fca777389b93ba8.tar.xz
mullvadvpn-f4a9b1de419520fb67dc4fdd7fca777389b93ba8.zip
Merge branch 'log-rest-error-code'
-rw-r--r--mullvad-rpc/src/rest.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mullvad-rpc/src/rest.rs b/mullvad-rpc/src/rest.rs
index e11e404881..c36f1d894e 100644
--- a/mullvad-rpc/src/rest.rs
+++ b/mullvad-rpc/src/rest.rs
@@ -50,8 +50,8 @@ pub enum Error {
#[error(display = "Failed to receive response from rest client")]
ReceiveError,
- /// When the http status code of the response is not 200 OK.
- #[error(display = "Http error. Status code {}", _0)]
+ /// Unexpected response code
+ #[error(display = "Unexpected response status code {} - {}", _0, _1)]
ApiError(StatusCode, String),
/// The string given was not a valid URI.