Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kabdelhak committed Jul 12, 2023
1 parent 1442c28 commit e28ae19
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions OMCompiler/Compiler/Util/Flags.mo
Expand Up @@ -56,10 +56,9 @@ encapsulated package Flags

public
import Gettext;
import UnorderedMap;
protected
import Error;
import Global;
import UnorderedMap;

public uniontype DebugFlag
record DEBUG_FLAG
Expand Down Expand Up @@ -1514,8 +1513,8 @@ algorithm
if UnorderedMap.contains(inFlag.name, config_flags) then
outValue := UnorderedMap.getSafe(inFlag.name, config_flags, sourceInfo());
else
Error.addMessage(Error.UNKNOWN_DEBUG_FLAG, {inFlag.name});
fail();
// this should not happen, but in case its not set, just use default
outValue := inFlag.default;
end if;
end getConfigValue;

Expand Down

0 comments on commit e28ae19

Please sign in to comment.