Improved error message

pull/2/head
Mark 2023-08-03 22:15:11 -07:00
parent 10314a2deb
commit 7f675c9d81
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ impl DaisyError {
},
DaisyError::BadArguments(s, want, got) => {
return FormattedText::new(format!(
"[e]Evaluation Error:[n] [c]{s}[n] takes {want} argument{}, got {got}",
"[e]Evaluation Error:[n] [c]{s}[n] takes {want} argument{}, but it got {got}",
if *want == 1 {""} else {"s"},
));
}