Skip to content

Commit

Permalink
Merge pull request #1186 from erlingrj/improve-zero-breadth-warning
Browse files Browse the repository at this point in the history
Improve warning message when zero reactions in program
  • Loading branch information
lhstrh authored May 23, 2022
2 parents 897c828 + cde97de commit 2206cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org.lflang/src/org/lflang/generator/c/CGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -2622,7 +2622,7 @@ private void createMainReactorInstance() {
// Inform the run-time of the breadth/parallelism of the reaction graph
var breadth = reactionInstanceGraph.getBreadth();
if (breadth == 0) {
errorReporter.reportWarning("Reaction graph breadth is computed to be 0. Indicates an error");
errorReporter.reportWarning("The program has no reactions");
} else {
targetConfig.compileDefinitions.put(
"LF_REACTION_GRAPH_BREADTH",
Expand Down

0 comments on commit 2206cd3

Please # to comment.