Skip to content

Commit

Permalink
fix error when program is regenerated
Browse files Browse the repository at this point in the history
  • Loading branch information
rbudde committed Aug 19, 2024
1 parent 9fc8881 commit e457cd1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public void execute(Project project) {
String configurationXML = jaxbToXml(astToJaxb(configurationAst));
project.setConfigurationAsBlocklyXML(configurationXML);

project.setResult(Key.COMPILERWORKFLOW_SUCCESS);
// this worker executes independent of success or failure of preceding workers.
// thus, this worker should NEVER change the result. The result should stay as it is :-)
} catch ( Throwable e ) {
LOG.error("program & configuration ast -> blockly failed", e);
project.setResult(Key.COMPILERWORKFLOW_ERROR_PROGRAM_GENERATION_FAILED);
Expand Down

0 comments on commit e457cd1

Please sign in to comment.