[gnome-builder] beautifier: Print formatter error on its own line



commit cbb43b506dba11145b84f1868e398a188ece1fc0
Author: vanadiae <vanadiae35 gmail com>
Date:   Sat Feb 6 20:18:17 2021 +0100

    beautifier: Print formatter error on its own line
    
    Currently when a formatter outputs an error message giving the location
    of the error, like so:
    foo bar baz
        ^^^
        \---------- formatter error message
    It doesn't fit nicely because the first line is after the foreword that
    is printed just before on the same line.
    
    So this commit shows the formatter error message starting on its own
    line, so this kind of error message is properly displayed.

 src/plugins/beautifier/gb-beautifier-process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/beautifier/gb-beautifier-process.c b/src/plugins/beautifier/gb-beautifier-process.c
index 9c3a70551..60f93f9dc 100644
--- a/src/plugins/beautifier/gb-beautifier-process.c
+++ b/src/plugins/beautifier/gb-beautifier-process.c
@@ -278,7 +278,7 @@ process_communicate_utf8_cb (GObject      *object,
         {
           ide_object_warning (state->self,
                               /* translators: %s is replaced with the command error message */
-                              _("Beautifier plugin: command error output: %s"),
+                              _("Beautifier plugin: command error output:\n%s"),
                               stderr_str);
         }
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]