[gnome-shell/benzea/systemd-3.36-units] Apply 1 suggestion(s) to 1 file(s)



commit 4aed082f2c0a226481e6bee7fc4cffd3a137fb35
Author: Benjamin Berg <benjamin sipsolutions net>
Date:   Thu Jul 16 09:38:14 2020 +0000

    Apply 1 suggestion(s) to 1 file(s)

 src/shell-util.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/shell-util.c b/src/shell-util.c
index a14b5827d3..f01caeaa70 100644
--- a/src/shell-util.c
+++ b/src/shell-util.c
@@ -766,12 +766,11 @@ shell_util_systemd_call (const char           *command,
     }
   else if (res < 0)
     {
-      g_set_error (&error,
-                   G_IO_ERROR,
-                   g_io_error_from_errno (-res),
-                   "Error trying to start systemd unit '%s': %s",
-                   unit, g_strerror (-res));
-      g_task_return_error (task, error);
+      g_task_return_new_error (task,
+                               G_IO_ERROR,
+                               g_io_error_from_errno (-res),
+                               "Error trying to start systemd unit '%s': "%s",
+                               unit, g_strerror (-str));
     }
 
   data = g_new0 (SystemdCall, 1);


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