Skip to content

Commit

Permalink
- Fixed logic in Main.main2.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22977 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Oct 27, 2014
1 parent efdaa46 commit 4511848
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Compiler/Main/Main.mo
Expand Up @@ -833,14 +833,6 @@ algorithm
setWindowsPaths(Settings.getInstallationDirectoryPath());
end if;

// OMC called with no arguments, print usage information and quit.
if listEmpty(args) then
if not Config.helpRequest() then
print(Flags.printUsage());
end if;
return;
end if;

try
Settings.getInstallationDirectoryPath();

Expand All @@ -855,6 +847,14 @@ algorithm
FGraphStream.finish();
end if;
else // Something went wrong, print an appropriate error.
// OMC called with no arguments, print usage information and quit.
if listEmpty(args) then
if not Config.helpRequest() then
print(Flags.printUsage());
end if;
return;
end if;

try
Settings.getInstallationDirectoryPath();
print("# Error encountered! Exiting...\n");
Expand Down

0 comments on commit 4511848

Please sign in to comment.