mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-15 16:53:25 +00:00
cli: describe: don't unwrap read error of stdin
This commit is contained in:
parent
d328adca7b
commit
69bb57d1d1
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ pub(crate) fn cmd_describe(
|
|||
workspace_command.check_rewritable([commit.id()])?;
|
||||
let description = if args.stdin {
|
||||
let mut buffer = String::new();
|
||||
io::stdin().read_to_string(&mut buffer).unwrap();
|
||||
io::stdin().read_to_string(&mut buffer)?;
|
||||
buffer
|
||||
} else if !args.message_paragraphs.is_empty() {
|
||||
join_message_paragraphs(&args.message_paragraphs)
|
||||
|
|
Loading…
Reference in a new issue