Skip to content

Commit

Permalink
Merge pull request #2448 from AleoHQ/update/printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed May 3, 2024
2 parents b27dcff + 0cf96c4 commit 5c57a48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions ledger/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,6 @@ fn test_insufficient_public_fees() {
ledger.advance_to_next_block(&block).unwrap();
}

println!("-----------");

// Attempt to bond the node with insufficient public fees.
{
let inputs = [
Expand Down
3 changes: 2 additions & 1 deletion utilities/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Error for crate::io::Error {}

/// This macro provides a VM runtime environment which will safely halt
/// without producing logs that look like unexpected behavior.
/// It prints to stderr using the format: "VM safely halted at <location>: <halt message>".
/// In debug mode, it prints to stderr using the format: "VM safely halted at <location>: <halt message>".
#[macro_export]
macro_rules! try_vm_runtime {
($e:expr) => {{
Expand All @@ -53,6 +53,7 @@ macro_rules! try_vm_runtime {
let msg = msg.split_ascii_whitespace().skip_while(|&word| word != "panicked").collect::<Vec<&str>>();
let mut msg = msg.join(" ");
msg = msg.replacen("panicked", "VM safely halted", 1);
#[cfg(debug_assertions)]
eprintln!("{msg}");
}));

Expand Down

0 comments on commit 5c57a48

Please sign in to comment.