mirror of
https://github.com/rm-dr/daisy
synced 2025-04-10 15:13:28 -07:00
Improved error message
This commit is contained in:
parent
10314a2deb
commit
7f675c9d81
@ -86,7 +86,7 @@ impl DaisyError {
|
|||||||
},
|
},
|
||||||
DaisyError::BadArguments(s, want, got) => {
|
DaisyError::BadArguments(s, want, got) => {
|
||||||
return FormattedText::new(format!(
|
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"},
|
if *want == 1 {""} else {"s"},
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user