diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2023-01-16 10:39:03 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2023-01-19 11:43:32 +0100 |
commit | 58b96128fdd1c1da961255cc82b09bb364192c3d (patch) | |
tree | 20dad661511d4029bbc4a2b6fbb756acd4374a4b /mqtt-tester/src/behaviour/wait_for_connect.rs | |
parent | 8e90d829eea7be1a8f983012ab8dcf43006045a8 (diff) |
Add error contexts
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'mqtt-tester/src/behaviour/wait_for_connect.rs')
-rw-r--r-- | mqtt-tester/src/behaviour/wait_for_connect.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mqtt-tester/src/behaviour/wait_for_connect.rs b/mqtt-tester/src/behaviour/wait_for_connect.rs index 1d643e3..e63c415 100644 --- a/mqtt-tester/src/behaviour/wait_for_connect.rs +++ b/mqtt-tester/src/behaviour/wait_for_connect.rs @@ -4,6 +4,8 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. // +use miette::Context; + use crate::{ behaviour_test::BehaviourTest, command::{Input, Output}, @@ -41,6 +43,8 @@ impl BehaviourTest for WaitForConnect { }), ) .await + .context("Waiting for bytes to check") + .map_err(miette::Error::from) } fn report_name(&self) -> &str { |