mirror of
https://git.sr.ht/~nixgoat/vento
synced 2025-11-29 16:15:43 +00:00
error: Fix switchup between SpecifyFile and SpecifySlot
Turns out SpecifyFile would show the message for SpecifySlot and viceversa. Whoops!
This commit is contained in:
parent
5e2763f5df
commit
67d2da8767
|
|
@ -32,8 +32,8 @@ pub fn throw_error(error: ErrorType) -> Result<()> {
|
||||||
"{}",
|
"{}",
|
||||||
match error {
|
match error {
|
||||||
ErrorType::TooManyArgs => "Too many arguments",
|
ErrorType::TooManyArgs => "Too many arguments",
|
||||||
ErrorType::SpecifySlot => "You need to specify a file",
|
ErrorType::SpecifyFile => "You need to specify a file",
|
||||||
ErrorType::SpecifyFile => "You need to specify a slot",
|
ErrorType::SpecifySlot => "You need to specify a slot",
|
||||||
ErrorType::NoCurrentDirectory => "Vento was unable to detect your current directory. Have you configured your environment correctly?",
|
ErrorType::NoCurrentDirectory => "Vento was unable to detect your current directory. Have you configured your environment correctly?",
|
||||||
}
|
}
|
||||||
.red()
|
.red()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue