Skip to content

Commit

Permalink
refactor: remove error message when compiling template
Browse files Browse the repository at this point in the history
  • Loading branch information
InioX committed Mar 3, 2024
1 parent 298adf9 commit 4523c65
Showing 1 changed file with 4 additions and 32 deletions.
36 changes: 4 additions & 32 deletions src/util/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 4523c65

Please sign in to comment.