From f8886f4e47d8c672f828cdd8c3f766a1947c3582 Mon Sep 17 00:00:00 2001 From: Boshen <1430279+Boshen@users.noreply.github.com> Date: Tue, 21 Oct 2025 11:41:27 +0000 Subject: [PATCH] fix: derive Error for JSONError (#779) --- src/error.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 47a48cf4..02a15052 100644 --- a/src/error.rs +++ b/src/error.rs @@ -145,7 +145,8 @@ pub enum SpecifierError { } /// JSON error from [serde_json::Error] -#[derive(Debug, Clone, Eq, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq, Error)] +#[error("{message}")] pub struct JSONError { pub path: PathBuf, pub message: String,