better compiler errors

This commit is contained in:
brevalferrari 2025-06-07 13:01:38 +02:00
parent bbccf46d47
commit 09e07a1c8c
2 changed files with 2 additions and 2 deletions

View file

@ -173,5 +173,5 @@ fn parse_and_compile(opts: &PlayOpts) -> anyhow::Result<Vec<f64>> {
); );
} }
}) })
.context("Failed to process input tokens") .context("Failed to compile tokens to samples")
} }

View file

@ -302,7 +302,7 @@ pub enum CompilerError {
#[error(transparent)] #[error(transparent)]
SlopeNotFound(#[from] SlopeNotFoundError), SlopeNotFound(#[from] SlopeNotFoundError),
#[error( #[error(
"You successfully made a nilplet / noplet (and I don't know what to do with it).\nTo resume compilation, remove any occurrence of \"[]\" in your sheet music." "🎉 You successfully made a nilplet / noplet (and I don't know what to do with it)\nTo resume compilation, remove any occurrence of \"[]\" in your sheet music."
)] )]
Nilplet, Nilplet,
} }