Merge pull request #100 from Hoverbear-Consulting/merge-backtrace-omitted-lines

Join backtrace omission lines
This commit is contained in:
Jane Lusby 2022-02-24 17:45:44 -08:00 committed by GitHub
commit 702f71f475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,10 +229,9 @@ impl fmt::Display for BacktraceOmited {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
// Print some info on how to increase verbosity.
if self.0 {
writeln!(f, "Backtrace omitted.")?;
write!(
f,
"Run with RUST_BACKTRACE=1 environment variable to display it."
"Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it."
)?;
} else {
// This text only makes sense if frames are displayed.