From 1c46598c4efaaf62f9cd4fa8cd89a0f4709a2a82 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 15 Nov 2017 12:09:54 +0100
Subject: [PATCH] make sure to print messages on terminal if Gmsh is not
 initialized

---
 Common/gmsh.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Common/gmsh.cpp b/Common/gmsh.cpp
index 7b63332cb8..4e906edc2d 100644
--- a/Common/gmsh.cpp
+++ b/Common/gmsh.cpp
@@ -33,6 +33,8 @@ static int _initialized = 0;
 static bool isInitialized()
 {
   if(!_initialized){
+    // make sure stuff gets printed out
+    CTX::instance()->terminal = 1;
     Msg::Error("Gmsh has not been initialized");
     return false;
   }
-- 
GitLab