From ba26ecd9808d7ecc95fb9869e4388aecbcf3a163 Mon Sep 17 00:00:00 2001 From: Denis Feklushkin Date: Sat, 14 Oct 2017 18:08:38 +0700 Subject: [PATCH] Travis CI: console linking fix, right way --- src/dlangui/platforms/console/consoleapp.d | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/dlangui/platforms/console/consoleapp.d b/src/dlangui/platforms/console/consoleapp.d index f3e3888a..335d4d18 100644 --- a/src/dlangui/platforms/console/consoleapp.d +++ b/src/dlangui/platforms/console/consoleapp.d @@ -504,15 +504,16 @@ extern(C) int DLANGUImain(string[] args) { Log.i("Entering UIAppMain: ", args); int result = -1; - try { - version (unittest) { - } else { - result = UIAppMain(args); - Log.i("UIAppMain returned ", result); + version (unittest) { + result = 0; + } else { + try { + result = UIAppMain(args); + Log.i("UIAppMain returned ", result); + } catch (Exception e) { + Log.e("Abnormal UIAppMain termination"); + Log.e("UIAppMain exception: ", e); } - } catch (Exception e) { - Log.e("Abnormal UIAppMain termination"); - Log.e("UIAppMain exception: ", e); } Platform.setInstance(null);