From a8fc597a91fe47288035066e753b8943c3756f2b Mon Sep 17 00:00:00 2001 From: mlodi-hqs Date: Mon, 29 Jan 2024 14:55:13 +0100 Subject: [PATCH] better error --- roqoqo/src/devices/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roqoqo/src/devices/mod.rs b/roqoqo/src/devices/mod.rs index 7e523daf..cd110c37 100644 --- a/roqoqo/src/devices/mod.rs +++ b/roqoqo/src/devices/mod.rs @@ -220,7 +220,7 @@ pub trait Device { #[allow(unused_mut)] fn change_device(&mut self, hqslang: &str, operation: &[u8]) -> Result<(), RoqoqoBackendError> { Err(RoqoqoBackendError::GenericError { - msg: "The device ".to_string(), + msg: "The `change_device()` method has not been implemented.".to_string(), }) } @@ -468,7 +468,7 @@ pub trait QoqoDevice { #[allow(unused_mut)] fn change_device(&mut self, hqslang: &str, operation: &[u8]) -> Result<(), RoqoqoBackendError> { Err(RoqoqoBackendError::GenericError { - msg: "The device ".to_string(), + msg: "The `change_device()` method has not been implemented.".to_string(), }) } }