Skip to content

Commit

Permalink
Change order of fflush (#11703)
Browse files Browse the repository at this point in the history
On WSL, the error-message printed before the filename
  • Loading branch information
sjoelund committed Dec 16, 2023
1 parent 3a5196b commit 49a342b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OMCompiler/Compiler/Main/Main.mo
Expand Up @@ -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
Expand Down

0 comments on commit 49a342b

Please sign in to comment.