[gjs: 2/3] console: Remove trailing newline from log message
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 2/3] console: Remove trailing newline from log message
- Date: Sun, 5 Jan 2020 05:08:56 +0000 (UTC)
commit e3d6bc5fc04f99b38c105d927d461a4c93b42a7a
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Jan 4 23:21:31 2020 -0500
console: Remove trailing newline from log message
Spotted by Cosimo in an after-the-fact code review.
gjs/console.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gjs/console.cpp b/gjs/console.cpp
index a42a37a3..9e335594 100644
--- a/gjs/console.cpp
+++ b/gjs/console.cpp
@@ -203,7 +203,7 @@ int define_argv_and_eval_script(GjsContext* js_context, int argc,
int code;
if (!gjs_context_eval(js_context, script, len, filename, &code, &error)) {
if (!g_error_matches(error, GJS_ERROR, GJS_ERROR_SYSTEM_EXIT))
- g_critical("%s\n", error->message);
+ g_critical("%s", error->message);
g_clear_error(&error);
}
return code;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]