Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl HeatMapChart {
}

if updates_per_slot_per_block.is_empty() {
return Err("No trace data was collected. If transactions from the specified run landed, your target node may not support geth-style preState traces".into());
println!("No trace data was collected. If transactions from the specified run landed, your target node may not support geth-style preState traces");
}

Ok(Self {
Expand Down Expand Up @@ -139,6 +139,15 @@ impl DrawableChart for HeatMapChart {
let slot_names = self.get_hex_slots();
let matrix = self.get_matrix();

if matrix.is_empty() {
root.draw(&Text::new(
"No trace data was collected",
(0, 0),
("sans-serif", 32),
))?;
return Ok(());
}

let x_size = matrix.len();
let y_size = matrix[0].len();
let max_incidence = matrix
Expand Down
Loading