mirror of https://github.com/rwf2/Rocket.git
Merge branch 'master' into fix-clippy-warning
This commit is contained in:
commit
2da8c1fe90
|
@ -195,7 +195,7 @@ impl Error {
|
|||
match result {
|
||||
Ok(_) => process::ExitCode::SUCCESS,
|
||||
Err(e) => {
|
||||
span_error!("error", "aborting launch due to error" => e.trace_error());
|
||||
span_error!("launch failure", "aborting launch due to error" => e.trace_error());
|
||||
process::ExitCode::SUCCESS
|
||||
}
|
||||
}
|
||||
|
|
|
@ -338,7 +338,7 @@ impl Trace for ErrorKind {
|
|||
});
|
||||
}
|
||||
FailedFairings(fairings) => {
|
||||
let span = span!(level, "fairings", count = fairings.len(), "ignition failure");
|
||||
let span = span!(level, "failed ignite fairings", count = fairings.len());
|
||||
span.in_scope(|| fairings.iter().trace_all(level));
|
||||
},
|
||||
SentinelAborts(sentries) => {
|
||||
|
|
|
@ -7,7 +7,7 @@ fn test_ignite_failure() -> Result<()> {
|
|||
};
|
||||
|
||||
if let Err(Error::Liftoff(stdout, _)) = server {
|
||||
assert!(stdout.contains("ignition failure"));
|
||||
assert!(stdout.contains("failed ignite"));
|
||||
assert!(stdout.contains("FailNow"));
|
||||
} else {
|
||||
panic!("unexpected result: {server:#?}");
|
||||
|
|
Loading…
Reference in New Issue