From 235cafba7c51208f9a5846a3185530e79f4563bd Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Tue, 10 Sep 2024 11:01:04 +0200 Subject: [PATCH] Make the error message on undefined label more informative (#782) --- emulator/src/parser/expression.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emulator/src/parser/expression.rs b/emulator/src/parser/expression.rs index 606e0ce8..082d70b8 100644 --- a/emulator/src/parser/expression.rs +++ b/emulator/src/parser/expression.rs @@ -218,7 +218,7 @@ impl Context for EmptyContext { #[derive(Error, Debug, PartialEq)] pub enum EvaluationError { - #[error("undefined variable {variable:?}")] + #[error("undefined label or macro {variable:?}")] UndefinedVariable { variable: String }, #[error("could not downcast value")]