Skip to content

Commit 60a5cf0

Browse files
authored
[omdb] Add missing newline to omdb db ereport show (#8805)
As seen in today's demo hour, the use of `serde_json::to_writer_pretty` doesn't include a trailing newline, so the closing `}` of the ereport JSON is followed immediately by the shell prompt. This both looks bad and makes copying/pasting the JSON annoyinger. This commit adds the newline. Whoopsie.
1 parent 4871bfe commit 60a5cf0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dev-tools/omdb/src/bin/omdb/db/ereport.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ async fn cmd_db_ereport_info(
369369
println!("\n{:=<80}", "== EREPORT ");
370370
serde_json::to_writer_pretty(std::io::stdout(), &report)
371371
.with_context(|| format!("failed to serialize ereport: {report:?}"))?;
372+
println!();
372373

373374
Ok(())
374375
}

0 commit comments

Comments
 (0)