From 547fe5d4ed286d600abe69a73003d014f47db7f1 Mon Sep 17 00:00:00 2001 From: Matt Kantor Date: Thu, 24 Dec 2020 17:05:39 -0800 Subject: [PATCH] Fix punctuation in errors built with `RenderError::from_error`. --- src/error.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/error.rs b/src/error.rs index fac6bba30..fb3444cc5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -47,45 +47,45 @@ impl Error for RenderError { impl From for RenderError { fn from(e: IOError) -> RenderError { - RenderError::from_error("Error on output generation.", e) + RenderError::from_error("Error on output generation", e) } } impl From for RenderError { fn from(e: SerdeError) -> RenderError { - RenderError::from_error("Error when accessing JSON data.", e) + RenderError::from_error("Error when accessing JSON data", e) } } impl From for RenderError { fn from(e: FromUtf8Error) -> RenderError { - RenderError::from_error("Error on bytes generation.", e) + RenderError::from_error("Error on bytes generation", e) } } impl From for RenderError { fn from(e: ParseIntError) -> RenderError { - RenderError::from_error("Error on accessing array/vector with string index.", e) + RenderError::from_error("Error on accessing array/vector with string index", e) } } impl From for RenderError { fn from(e: TemplateError) -> RenderError { - RenderError::from_error("Error with parsing template.", e) + RenderError::from_error("Error with parsing template", e) } } #[cfg(feature = "script_helper")] impl From> for RenderError { fn from(e: Box) -> RenderError { - RenderError::from_error("Error on converting data to Rhai dynamic.", e) + RenderError::from_error("Error on converting data to Rhai dynamic", e) } } #[cfg(feature = "script_helper")] impl From for RenderError { fn from(e: ScriptError) -> RenderError { - RenderError::from_error("Error loading rhai script.", e) + RenderError::from_error("Error loading rhai script", e) } }