mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-25 06:35:56 -05:00
fix missing newline in error msg
This commit is contained in:
parent
fb5b414297
commit
8bfd96f9a3
@ -38,10 +38,10 @@ pub fn prettify_failure(e: &failure::Error) -> String {
|
|||||||
write!(&mut msg, "\ncaused by: {}", cause).unwrap();
|
write!(&mut msg, "\ncaused by: {}", cause).unwrap();
|
||||||
}
|
}
|
||||||
if e.backtrace().is_empty() {
|
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();
|
.unwrap();
|
||||||
} else {
|
} else {
|
||||||
write!(&mut msg, "\nBacktrace:\n{}", e.backtrace()).unwrap();
|
write!(&mut msg, "\n\nBacktrace:\n{}", e.backtrace()).unwrap();
|
||||||
}
|
}
|
||||||
msg
|
msg
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user