From cde97de86f05cb068b0884249af10641bfb9106f Mon Sep 17 00:00:00 2001 From: Erling Date: Mon, 23 May 2022 20:08:36 +0200 Subject: [PATCH] Improve warning message when zero reactions in program --- org.lflang/src/org/lflang/generator/c/CGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.lflang/src/org/lflang/generator/c/CGenerator.java b/org.lflang/src/org/lflang/generator/c/CGenerator.java index e7800d5199..fc9735362f 100644 --- a/org.lflang/src/org/lflang/generator/c/CGenerator.java +++ b/org.lflang/src/org/lflang/generator/c/CGenerator.java @@ -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",