diff --git a/Cargo.lock b/Cargo.lock index 8e982866..ff27fdf4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1640,7 +1640,7 @@ dependencies = [ [[package]] name = "kit" -version = "0.6.1" +version = "0.6.2" dependencies = [ "anyhow", "base64 0.21.7", diff --git a/Cargo.toml b/Cargo.toml index 4d8b49af..c60558f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kit" -version = "0.6.1" +version = "0.6.2" edition = "2021" [build-dependencies] diff --git a/src/view_api/mod.rs b/src/view_api/mod.rs index 6e7689f2..ea724d75 100644 --- a/src/view_api/mod.rs +++ b/src/view_api/mod.rs @@ -1,6 +1,6 @@ use std::path::PathBuf; -use color_eyre::{Result, eyre::eyre}; +use color_eyre::{Result, Section, eyre::eyre}; use fs_err as fs; use serde_json::json; use tracing::{info, instrument}; @@ -9,7 +9,7 @@ use crate::{boot_fake_node::extract_zip, inject_message, KIT_CACHE, KIT_LOG_PATH #[instrument(level = "trace", skip_all)] fn list_apis(node: Option<&str>) -> Result { - let message = json!("ListApis"); + let message = json!("Apis"); inject_message::make_message( "main:app_store:sys", @@ -78,7 +78,8 @@ pub async fn execute( .map_err(|e| { let e_string = e.to_string(); if e_string.contains("Failed with status code:") { - eyre!("{}\ncheck logs (default at {}) for full http response\n\nhint: is Kinode running at url {}?", e_string, KIT_LOG_PATH_DEFAULT, url) + eyre!("{e_string}\ncheck logs (default at {KIT_LOG_PATH_DEFAULT}) for full http response") + .with_suggestion(|| "is Kinode running at url {url}?") } else { eyre!(e_string) }