error: Fix switchup between SpecifyFile and SpecifySlot

Turns out SpecifyFile would show the message for SpecifySlot and
viceversa. Whoops!
This commit is contained in:
Lux Aliaga 2023-02-19 13:34:32 -03:00
parent 5e2763f5df
commit 67d2da8767
Signed by: lux
GPG Key ID: B56C805968637437
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ pub fn throw_error(error: ErrorType) -> Result<()> {
"{}",
match error {
ErrorType::TooManyArgs => "Too many arguments",
ErrorType::SpecifySlot => "You need to specify a file",
ErrorType::SpecifyFile => "You need to specify a slot",
ErrorType::SpecifyFile => "You need to specify a file",
ErrorType::SpecifySlot => "You need to specify a slot",
ErrorType::NoCurrentDirectory => "Vento was unable to detect your current directory. Have you configured your environment correctly?",
}
.red()