summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2023-03-03 09:07:53 +0100
committerMatthias Beyer <mail@beyermatthias.de>2023-03-03 09:31:42 +0100
commit4e3e15ee9f3a3495990b60460c3029daba5e849e (patch)
treef4947cb8532cf6ecbbf7d406175f3c6a85a8e989
parent0f0d1dc7bdcc45c7dc75c5f5ecac12e85a5ceba7 (diff)
Add serde_json error variant
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 6bb2901..1c2e9c4 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -64,6 +64,9 @@ pub enum Error {
#[error("Fragment Error: {}", .1.display())]
FragmentError(#[source] FragmentError, PathBuf),
+ #[error(transparent)]
+ Json(#[from] serde_json::Error),
+
#[error("Version error")]
Version(#[from] VersionError),