Skip to content

Commit

Permalink
better error
Browse files Browse the repository at this point in the history
  • Loading branch information
mlodi-hqs committed Jan 29, 2024
1 parent 7b41ed2 commit a8fc597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roqoqo/src/devices/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
})
}

Expand Down Expand Up @@ -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(),
})
}
}
Expand Down

0 comments on commit a8fc597

Please sign in to comment.