[Libreoffice-commits] online.git: tools/Config.cpp

Aron Budea aron.budea at collabora.com
Wed Mar 28 08:16:46 UTC 2018


 tools/Config.cpp |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit c20c51d8a5ed70d1b11e75f5b837be6439945d50
Author: Aron Budea <aron.budea at collabora.com>
Date:   Tue Mar 27 14:35:19 2018 +0200

    Fix unused-result warning.
    
    Change-Id: I31fa4edd68e8a5ba973c159599e71e74406b8e6e
    Reviewed-on: https://gerrit.libreoffice.org/51947
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/tools/Config.cpp b/tools/Config.cpp
index aaa06e2c6..cb35a6fde 100644
--- a/tools/Config.cpp
+++ b/tools/Config.cpp
@@ -329,7 +329,10 @@ int Config::main(const std::vector<std::string>& args)
         const char command[] = "su lool --shell=/bin/sh -c 'loolwsd-systemplate-setup /opt/lool/systemplate " LO_PATH " >/dev/null 2>&1'";
         std::cout << "Running the following command:" << std::endl
                   << command << std::endl;
+
         retval = system(command);
+        if (retval != 0)
+            std::cerr << "Error when executing command." << std::endl;
     }
     else
     {


More information about the Libreoffice-commits mailing list