mirror of https://github.com/rm-dr/daisy
Improved error message
parent
10314a2deb
commit
7f675c9d81
|
@ -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"},
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue