about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_errors/src/error.rs')
-rw-r--r--compiler/rustc_errors/src/error.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/error.rs b/compiler/rustc_errors/src/error.rs
index e1c8dcd3bd3..ec0a2fe8cd8 100644
--- a/compiler/rustc_errors/src/error.rs
+++ b/compiler/rustc_errors/src/error.rs
@@ -65,11 +65,14 @@ impl fmt::Display for TranslateError<'_> {
 
         match self {
             Self::One { id, args, kind } => {
-                writeln!(f, "\nfailed while formatting fluent string `{id}`: ")?;
+                writeln!(f, "failed while formatting fluent string `{id}`: ")?;
                 match kind {
                     MessageMissing => writeln!(f, "message was missing")?,
                     PrimaryBundleMissing => writeln!(f, "the primary bundle was missing")?,
-                    AttributeMissing { attr } => writeln!(f, "the attribute `{attr}` was missing")?,
+                    AttributeMissing { attr } => {
+                        writeln!(f, "the attribute `{attr}` was missing")?;
+                        writeln!(f, "help: add `.{attr} = <message>`")?;
+                    }
                     ValueMissing => writeln!(f, "the value was missing")?,
                     Fluent { errs } => {
                         for err in errs {