Skip to content

Commit f6a42d6

Browse files
committed
refactor(client-cli): rephrase error messages and add console output messages
1 parent d3c0915 commit f6a42d6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

mithril-client-cli/src/commands/tools/snapshot_converter.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,24 @@ impl SnapshotConverterCommand {
120120
&distribution_dir,
121121
)
122122
.await
123-
.with_context(|| {
124-
"Failed to download 'snapshot-converter' binary from Cardano node distribution"
125-
})?;
123+
.with_context(|| "Failed to download Cardano node distribution")?;
126124

125+
println!(
126+
"Unpacking distribution from archive: {}",
127+
archive_path.display()
128+
);
127129
ArchiveUnpacker::default()
128130
.unpack(&archive_path, &distribution_dir)
129131
.with_context(|| {
130132
format!(
131-
"Failed to unpack 'snapshot-converter' binary to directory: {}",
133+
"Failed to unpack distribution to directory: {}",
132134
distribution_dir.display()
133135
)
134136
})?;
137+
println!(
138+
"Distribution unpacked successfully to: {}",
139+
distribution_dir.display()
140+
);
135141

136142
Self::convert_ledger_state_snapshot(
137143
&work_dir,

0 commit comments

Comments
 (0)