fix missing newline in error msg

This commit is contained in:
Scott Lamb 2021-02-11 11:07:16 -08:00
parent fb5b414297
commit 8bfd96f9a3

View File

@ -38,10 +38,10 @@ pub fn prettify_failure(e: &failure::Error) -> String {
write!(&mut msg, "\ncaused by: {}", cause).unwrap();
}
if e.backtrace().is_empty() {
write!(&mut msg, "\n(set environment variable RUST_BACKTRACE=1 to see backtraces)")
write!(&mut msg, "\n\n(set environment variable RUST_BACKTRACE=1 to see backtraces)")
.unwrap();
} else {
write!(&mut msg, "\nBacktrace:\n{}", e.backtrace()).unwrap();
write!(&mut msg, "\n\nBacktrace:\n{}", e.backtrace()).unwrap();
}
msg
}