From 0ebffa2b9e20a0a7db21528f1ec4962b48ce3f7d Mon Sep 17 00:00:00 2001 From: KtorZ Date: Thu, 13 Jun 2024 14:54:30 +0200 Subject: [PATCH] Fix few error messages. --- crates/aiken-lang/src/tipo/error.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/aiken-lang/src/tipo/error.rs b/crates/aiken-lang/src/tipo/error.rs index 60662f17..c183ad34 100644 --- a/crates/aiken-lang/src/tipo/error.rs +++ b/crates/aiken-lang/src/tipo/error.rs @@ -537,7 +537,7 @@ If you really meant to return that last expression, try to replace it with the f }, #[error("{}\n", if *is_let { - "I noticed a let assignment matching a value with more than one pattern.".to_string() + "I noticed an incomplete single-pattern matching a value with more than one pattern.".to_string() } else { format!( "I realized that a given '{keyword_when}/{keyword_is}' expression is non-exhaustive.", @@ -1696,15 +1696,15 @@ pub enum Warning { #[error( "I came across a validator in a {} {}", "lib/".if_supports_color(Stderr, |s| s.purple()), - "module which means\nI'm going to ignore it.\n".if_supports_color(Stderr, |s| s.yellow()), + "module which means I'm going to ignore it.".if_supports_color(Stderr, |s| s.yellow()), )] #[diagnostic(help( - "No big deal, but you might want to move it to a {} module\nor remove it to get rid of that warning.", - "validators/".if_supports_color(Stderr, |s| s.purple()) + "No big deal, but you might want to move it to the {} folder or remove it to get rid of that warning.", + "validators".if_supports_color(Stderr, |s| s.purple()), ))] #[diagnostic(code("unused::validator"))] ValidatorInLibraryModule { - #[label("unused validator")] + #[label("ignored")] location: Span, },