Skip to content

Commit

Permalink
Give more message in error string (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson authored Nov 27, 2023
1 parent 40dbb66 commit 72bfa02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckb-debugger-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub fn check(tx: &ReprMockTransaction) -> Result<(), String> {
cell_deps.sort_by(compare);

if mock_cell_deps.len() != cell_deps.len() {
return Err(format!("mock_cell_deps.len() != cell_deps.len("));
return Err(format!("mock_cell_deps.len() != cell_deps.len(), {} != {}", mock_cell_deps.len(), cell_deps.len()));
} else {
for (a, b) in mock_cell_deps.into_iter().zip(cell_deps.into_iter()) {
if a != b {
Expand Down

0 comments on commit 72bfa02

Please sign in to comment.