From 4523c6522929e79be7a23ae44535828a7d7813a8 Mon Sep 17 00:00:00 2001 From: InioX Date: Sun, 3 Mar 2024 18:54:15 +0100 Subject: [PATCH] refactor: remove error message when compiling template --- src/util/template.rs | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/src/util/template.rs b/src/util/template.rs index 321a446..1b3f9fe 100644 --- a/src/util/template.rs +++ b/src/util/template.rs @@ -160,9 +160,7 @@ impl Template { input_path_absolute.display(), error ); - Report::new(error) - .wrap_err(message) - .suggestion("Make sure you closed the {{ opening properly.") + Report::new(error).wrap_err(message) })?; debug!( @@ -196,36 +194,10 @@ impl Template { "[{} - {}]\n{:#}", name, input_path_absolute.display(), - error + &error ); - Report::new(error).wrap_err(message).note( - r#"The following colors have been removed: - - color_accent_primary - - color_accent_primary_variant - - color_accent_secondary - - color_accent_secondary_variant - - color_accent_tertiary - - color_accent_tertiary_variant - - text_color_primary - - text_color_secondary: - - text_color_tertiary - - text_color_primary_inverse - - text_color_secondary_inverse - - text_color_tertiary_inverse - - color_background - - color_background_floating - - color_surface - - color_surface_variant - - color_surface_highlight - - surface_header - - under_surface - - off_state - - accent_surface - - text_primary_on_accent - - text_secondary_on_accent - - volume_background - "#, - ) + + Report::new(error).wrap_err(message) })?; let mut output_file = OpenOptions::new()