Skip to content

Commit

Permalink
- Don't return loadFile("package.mo") success on error
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11721 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 11, 2012
1 parent a7e47ba commit b54e2b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/FrontEnd/ClassLoader.mo
Expand Up @@ -395,6 +395,7 @@ algorithm
case (name,encoding)
equation
true = System.regularFileExists(name);
false = stringEq(name,"package.mo");
(dir,filename) = Util.getAbsoluteDirectoryAndFile(name);
p1 = Parser.parse(name,encoding);
then
Expand Down

0 comments on commit b54e2b3

Please sign in to comment.