Skip to content

Commit 1874c84

Browse files
authored
Improved error message (#9602)
1 parent 27b0a84 commit 1874c84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

OMCompiler/Compiler/Util/Error.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ public constant ErrorTypes.Message NOTIFY_INITIALIZING_USER_LIBRARIES = ErrorTyp
11121112
public constant ErrorTypes.Message NOTIFY_PKG_ALREADY_INSTALLED = ErrorTypes.MESSAGE(617, ErrorTypes.TRANSLATION(), ErrorTypes.NOTIFICATION(),
11131113
Gettext.gettext("%s %s is already installed, skipping."));
11141114
public constant ErrorTypes.Message REINIT_IN_ALGORITHM = ErrorTypes.MESSAGE(618, ErrorTypes.TRANSLATION(), ErrorTypes.ERROR(),
1115-
Gettext.gettext("Operator reinit may not be used in an algorithm section (use flag --allowNonStandardModelica=reinitInAlgorithms to ignore)."));
1115+
Gettext.gettext("Operator reinit may not be used in an algorithm section (use translation flag --allowNonStandardModelica=reinitInAlgorithms to ignore)."));
11161116

11171117
public constant ErrorTypes.Message MATCH_SHADOWING = ErrorTypes.MESSAGE(5001, ErrorTypes.TRANSLATION(), ErrorTypes.ERROR(),
11181118
Gettext.gettext("Local variable '%s' shadows another variable."));

testsuite/flattening/modelica/scodeinst/ReinitInvalid7.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ end ReinitInvalid7;
1414

1515
// Result:
1616
// Error processing file: ReinitInvalid7.mo
17-
// [flattening/modelica/scodeinst/ReinitInvalid7.mo:11:5-11:19:writable] Error: Operator reinit may not be used in an algorithm section (use flag --allowNonStandardModelica=reinitInAlgorithms to ignore).
17+
// [flattening/modelica/scodeinst/ReinitInvalid7.mo:11:5-11:19:writable] Error: Operator reinit may not be used in an algorithm section (use translation flag --allowNonStandardModelica=reinitInAlgorithms to ignore).
1818
//
1919
// # Error encountered! Exiting...
2020
// # Please check the error message and the flags.

0 commit comments

Comments
 (0)