aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index d4f6b96..1e349d9 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -21,6 +21,7 @@ use std;
pub enum Error {
Http(reqwest::Error),
Io(std::io::Error),
+ Qs(serde_qs::Error),
Unauthorized,
Unknown,
}
@@ -36,3 +37,9 @@ impl From<std::io::Error> for Error {
Error::Io(e)
}
}
+
+impl From<serde_qs::Error> for Error {
+ fn from(e: serde_qs::Error) -> Error {
+ Error::Qs(e)
+ }
+}