Merge branch 'master' into fix-clippy-warning

This commit is contained in:
sheshnath 2024-08-21 17:35:30 +05:30 committed by GitHub
commit 2da8c1fe90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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
}
}

View File

@ -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) => {

View File

@ -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:#?}");