From 09e07a1c8c5377be3c80757161b2b18d95b893a1 Mon Sep 17 00:00:00 2001 From: brevalferrari Date: Sat, 7 Jun 2025 13:01:38 +0200 Subject: [PATCH] better compiler errors --- src/cli/main.rs | 2 +- src/compiler.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/main.rs b/src/cli/main.rs index 38899b2..67bd28e 100644 --- a/src/cli/main.rs +++ b/src/cli/main.rs @@ -173,5 +173,5 @@ fn parse_and_compile(opts: &PlayOpts) -> anyhow::Result> { ); } }) - .context("Failed to process input tokens") + .context("Failed to compile tokens to samples") } diff --git a/src/compiler.rs b/src/compiler.rs index 5b4c739..c70545d 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -302,7 +302,7 @@ pub enum CompilerError { #[error(transparent)] SlopeNotFound(#[from] SlopeNotFoundError), #[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, }