Skip to content

Commit

Permalink
- Minor changes to failtraces
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7018 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 14, 2010
1 parent d46f6e7 commit 10a482d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Compiler/Env.mo
Expand Up @@ -1326,7 +1326,6 @@ algorithm

case(inCache,id,env)
equation

SOME(path) = getEnvPath(env);
outCache = cacheAdd(path,inCache,env);
then outCache;
Expand All @@ -1335,8 +1334,8 @@ algorithm
equation
// this should be placed in the global environment
// how do we do that??
Debug.fprintln("env", "<<<< Env.addCachedEnv - failed to add env to cache for: " +&
printEnvPathStr(env) +& " [" +& id +& "]");
true = RTOpts.debugFlag("env");
Debug.traceln("<<<< Env.addCachedEnv - failed to add env to cache for: " +& printEnvPathStr(env) +& " [" +& id +& "]");
then inCache;

end matchcontinue;
Expand Down
4 changes: 2 additions & 2 deletions Compiler/Static.mo
Expand Up @@ -595,7 +595,7 @@ algorithm

case (cache,env,e,_,_,_,pre,info)
equation
///* FAILTRACE REMOVE
/* FAILTRACE REMOVE
true = RTOpts.debugFlag("failtrace");
Debug.fprint("failtrace", "- Static.elabExp failed: ");

Expand All @@ -606,7 +606,7 @@ algorithm
//Debug.traceln("\n env : ");
//Debug.traceln(Env.printEnvStr(env));
//Debug.traceln("\n----------------------- FINISHED ENV ------------------------\n");
//*/
*/
then
fail();
end matchcontinue;
Expand Down

0 comments on commit 10a482d

Please sign in to comment.