aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdvard Thörnros <edvard.thornros@gmail.com>2021-02-19 17:44:39 +0100
committerEdvard Thörnros <edvard.thornros@gmail.com>2021-02-19 17:44:39 +0100
commitf024e88de53c24fd5e5e2fb2d66947dc93262af8 (patch)
tree020072e9f7950de2f84d0a7b2309d15ba93d742d
parent31d68bc738c2973c6f018e38a0fb89f6e233f444 (diff)
downloadsylt-f024e88de53c24fd5e5e2fb2d66947dc93262af8.tar.gz
fix incorrect error message
-rw-r--r--src/compiler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index a3066b0..cd4ffda 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -281,7 +281,7 @@ macro_rules! push_frame {
$compiler.error_on_line(
e,
var.line,
- Some(format!("Usage of undefined value: '{}'.", var.name))
+ Some(format!("Unused value '{}'.", var.name))
);
}
$compiler.panic = false;