Skip to content

Commit

Permalink
tuning debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
haxjump committed Nov 8, 2024
1 parent 2b1ece4 commit f037e78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chaindev"
version = "0.52.1"
version = "0.52.2"
edition = "2021"
authors = ["hui.fan@mail.ru"]
description = "Powerful development and testing utils for blockchain developers."
Expand Down
4 changes: 2 additions & 2 deletions src/beacon_based/ddev/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ where
.fuhrers
.get(&node_id)
.or_else(|| self.meta.nodes.get(&node_id))
.c(d!("The target node does not exist"))?
.c(d!("The target node(id: {}) does not exist", node_id))?
.clone();

let new_host_addr = if let Some(addr) = new_host_addr {
Expand Down Expand Up @@ -812,7 +812,7 @@ where
.nodes
.remove(&id)
.or_else(|| self.meta.fuhrers.remove(&id))
.c(d!("Node ID does not exist?"))
.c(d!("The node(id: {}) does not exist?", id))
.and_then(|n| {
self.update_online_status(&[], &[id]);
self.meta
Expand Down
5 changes: 2 additions & 3 deletions src/beacon_based/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,7 @@ where
git add README.md && \
git commit -m 'Initial commit'
"#,
env.meta.home,
env.meta.name
env.meta.home, env.meta.name
);
cmd::exec_output(&cmd).c(d!())
})?;
Expand Down Expand Up @@ -485,7 +484,7 @@ where
self.meta
.nodes
.remove(&id)
.c(d!("Node id does not exist?"))
.c(d!("Node(id: {})does not exist?", id))
.and_then(|n| {
self.update_online_status(&[], &[id]);
n.destroy(self).c(d!())
Expand Down

0 comments on commit f037e78

Please sign in to comment.