From e1179efd7f35c92bbd1acc2b7efd3e017d7dc824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Mon, 2 Oct 2023 10:44:43 +0200 Subject: [PATCH] Return UnsuportedCommand (INVALID_COMMAND) instead of NotAvailable (INVALID_LENGTH) This allows nitropy to easily skip the test if the command is not supported --- src/admin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin.rs b/src/admin.rs index eabd82d..3da6806 100644 --- a/src/admin.rs +++ b/src/admin.rs @@ -276,7 +276,7 @@ where } #[cfg(not(feature = "se050"))] { - return Err(Error::NotAvailable); + return Err(Error::UnsupportedCommand); } } Command::GetConfig => {