Skip to content

Commit 2e6c48f

Browse files
committed
Print newlines before errors
1 parent 675c8ac commit 2e6c48f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,17 +329,17 @@ impl fmt::Display for BuildKernelError {
329329
writeln!(f, "Could not find kernel package in cargo metadata, required for retrieving kernel crate name")
330330
}
331331
BuildKernelError::Io {message, error} => {
332-
writeln!(f, "I/O error: {}: {}", message, error)
332+
writeln!(f, "I/O error: {}:\n{}", message, error)
333333
}
334334
BuildKernelError::XbuildNotFound => {
335335
writeln!(f, "Failed to run `cargo xbuild`. Perhaps it is not installed?\n\
336336
Run `cargo install cargo-xbuild` to install it.")
337337
}
338338
BuildKernelError::XbuildFailed{stderr} => {
339-
writeln!(f, "Kernel build failed: {}", String::from_utf8_lossy(stderr))
339+
writeln!(f, "Kernel build failed:\n{}", String::from_utf8_lossy(stderr))
340340
}
341341
BuildKernelError::CargoConfigInvalid{path,error} => {
342-
writeln!(f, "Failed to read cargo config at {}: {}", path.display(), error)
342+
writeln!(f, "Failed to read cargo config at {}:\n{}", path.display(), error)
343343
},
344344
}
345345
}

0 commit comments

Comments
 (0)