summaryrefslogtreecommitdiffstats
path: root/libimagutil
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-03-10 18:30:17 +0100
committerMatthias Beyer <mail@beyermatthias.de>2016-03-12 16:06:10 +0100
commitcd6e000be8297f6753ad19d4878bbb883e040ee6 (patch)
tree3848e70985d5223cd967a1fae6af22a67a1e5fd4 /libimagutil
parent361dec4cec7189786cf10fe3520d945e13908476 (diff)
trace: Add missing newline
Diffstat (limited to 'libimagutil')
-rw-r--r--libimagutil/src/trace.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libimagutil/src/trace.rs b/libimagutil/src/trace.rs
index cdb65aa5..58a009a5 100644
--- a/libimagutil/src/trace.rs
+++ b/libimagutil/src/trace.rs
@@ -29,7 +29,7 @@ pub fn trace_error(e: &Error) {
/// Output is the same as for `trace_error()`, though there are only `max` levels printed.
pub fn trace_error_maxdepth(e: &Error, max: u64) {
let n = count_error_causes(e);
- write!(stderr(), "{}/{} Levels of errors will be printed", (if max > n { n } else { max }), n);
+ write!(stderr(), "{}/{} Levels of errors will be printed\n", (if max > n { n } else { max }), n);
print_trace_maxdepth(n, e, max);
write!(stderr(), "");
}
@@ -48,7 +48,7 @@ pub fn trace_error_dbg(e: &Error) {
fn print_trace_maxdepth(idx: u64, e: &Error, max: u64) -> Option<&Error> {
if e.cause().is_some() && idx > 0 {
print_trace_maxdepth(idx - 1, e.cause().unwrap(), max);
- write!(stderr(), " -- caused:");
+ write!(stderr(), " -- caused:\n");
}
write!(stderr(), "Error {:>4} : {}", idx, e.description());
e.cause()