Skip to content

Commit

Permalink
Throw an exception when trying to save actions for a FlowNode on a co…
Browse files Browse the repository at this point in the history
…mpleted execution
  • Loading branch information
dwnusbaum committed Jan 2, 2024
1 parent 3b5707f commit a2426c0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,8 @@ public List<Action> loadActions(FlowNode node) throws IOException {
public void saveActions(FlowNode node, List<Action> actions) throws IOException {
if (storage == null) {
throw new IOException("storage not yet loaded");
} else if (isComplete()) {
throw new IOException("Cannot save actions for " + node + " on completed execution " + this + ": " + actions);
}
storage.saveActions(node, actions);
}
Expand Down

0 comments on commit a2426c0

Please sign in to comment.