From 35a78540c0354fb1ae76be67e9b80267d61d9d81 Mon Sep 17 00:00:00 2001 From: Lotte Steenbrink Date: Mon, 22 Jun 2020 22:44:11 +0200 Subject: [PATCH] =?UTF-8?q?respond=20to=20jorges=20reviw=E2=80=93=20make?= =?UTF-8?q?=20error=20messages=20more=20useful?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/dk-run/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dk-run/src/main.rs b/tools/dk-run/src/main.rs index 0e2e5b0..a53e38b 100644 --- a/tools/dk-run/src/main.rs +++ b/tools/dk-run/src/main.rs @@ -206,9 +206,9 @@ fn notmain() -> Result { } Err(probe_rs_rtt::Error::ControlBlockNotFound) => { if try_index < NUM_RETRIES { - log::info!("Attaching RTT failed. retrying"); + log::info!("Could not attach because the target's RTT control block isn't initialized (yet). retrying"); } else { - log::info!("Max number of retries exceeded. Giving up"); + log::info!("Max number RTT attach of retries exceeded. Did you call dk::init() first thing in your program?"); return Err(anyhow!(probe_rs_rtt::Error::ControlBlockNotFound)); } }