chiark / gitweb /
Fix message for IE::JSONEncode
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 11 Apr 2022 19:51:12 +0000 (20:51 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 11 Apr 2022 19:53:56 +0000 (20:53 +0100)
The name is JSONEncode, so this must be serialisation, and indeed that
is true of both the construction sites.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/error.rs

index b3d5a031edca2e189259ed2b6fe947dc729f70d0..1d34c9b7809cad60cad401fd6783210343600fc0 100644 (file)
@@ -38,7 +38,7 @@ pub enum InternalError {
   SVGProcessingFailed(#[from] SVGProcessingError),
   #[error("String formatting error {0}")]
   StringFormatting(#[from] fmt::Error),
-  #[error("JSON deserialisation error: {0:?}")]
+  #[error("JSON serialisation error: {0:?}")]
   JSONEncode(serde_json::Error),
   #[error("Server error: {}", .0.d())]
   Anyhow(#[from] anyhow::Error),