From 6d38f80e333b477b3835ce8cd67772a442e250f4 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 24 Jan 2023 20:53:01 -0500 Subject: [PATCH] Better set errors --- src/set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/set.rs b/src/set.rs index 1ab45e6..5d76997 100644 --- a/src/set.rs +++ b/src/set.rs @@ -382,7 +382,7 @@ fn parse_arguments(args: &[String]) -> Result<(Register, Operation, Register), K )) } _ => Err(KakError::Custom( - "Invalid arguments to set command".to_string(), + format!("Invalid arguments to set command: {args:?}"), )), }?;