From 49a342bd790ede0457d17cb2bdf132e2fa06b3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sj=C3=B6lund?= Date: Sat, 16 Dec 2023 04:55:12 +0100 Subject: [PATCH] Change order of fflush (#11703) On WSL, the error-message printed before the filename --- OMCompiler/Compiler/Main/Main.mo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OMCompiler/Compiler/Main/Main.mo b/OMCompiler/Compiler/Main/Main.mo index 0d3f1f73ff4..6eb7e816b60 100644 --- a/OMCompiler/Compiler/Main/Main.mo +++ b/OMCompiler/Compiler/Main/Main.mo @@ -481,12 +481,12 @@ algorithm case (f::_) algorithm if System.regularFileExists(f) then - print("Error processing file: "); System.fflush(); + print("Error processing file: "); else - print(System.gettext("File does not exist: ")); System.fflush(); + print(System.gettext("File does not exist: ")); end if; - print(f); print("\n"); + print(f); print("\n"); System.fflush(); // show errors if there are any showErrors(Print.getErrorString(), ErrorExt.printMessagesStr(false)); then