From 67d2da87676d7151913535c3a38d9069d0f8f603 Mon Sep 17 00:00:00 2001 From: Lux Aliaga Date: Sun, 19 Feb 2023 13:34:32 -0300 Subject: [PATCH] error: Fix switchup between SpecifyFile and SpecifySlot Turns out SpecifyFile would show the message for SpecifySlot and viceversa. Whoops! --- src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index 3352db2..97bfe0c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -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()