From 40b08712da6b8b3d373f1d0b33cb677280520bcf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz>
Date: Sun, 5 Mar 2017 11:23:14 +0100
Subject: [PATCH] Fixed return value in tnl-diff and tnl-init

---
 src/Tools/tnl-diff.cpp | 2 +-
 src/Tools/tnl-init.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Tools/tnl-diff.cpp b/src/Tools/tnl-diff.cpp
index 76c2e792bc..013f7bf21a 100644
--- a/src/Tools/tnl-diff.cpp
+++ b/src/Tools/tnl-diff.cpp
@@ -60,7 +60,7 @@ int main( int argc, char* argv[] )
    if( ! parseObjectType( meshType, parsedMeshType ) )
    {
       std::cerr << "Unable to parse the mesh type " << meshType << "." << std::endl;
-      return false;
+      return EXIT_FAILURE;
    }
    if( parsedMeshType[ 0 ] == "Meshes::Grid" ||
        parsedMeshType[ 0 ] == "tnlGrid" )        // TODO: remove deprecated type name
diff --git a/src/Tools/tnl-init.cpp b/src/Tools/tnl-init.cpp
index 90870bad68..f42b9ad3c9 100644
--- a/src/Tools/tnl-init.cpp
+++ b/src/Tools/tnl-init.cpp
@@ -65,7 +65,7 @@ int main( int argc, char* argv[] )
    if( ! parseObjectType( meshType, parsedMeshType ) )
    {
       std::cerr << "Unable to parse the mesh type " << meshType << "." << std::endl;
-      return false;
+      return EXIT_FAILURE;
    }
    if( ! resolveMeshType( parsedMeshType, parameters ) )
       return EXIT_FAILURE;
-- 
GitLab