Skip to content

Commit 4c706fc

Browse files
author
Yang Guo
committed
fix not call onError callback
1 parent 35f5372 commit 4c706fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platform-api/src/main/java/com/flow/platform/api/service/node/YmlServiceImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ public Node loadYmlContent(final Node root, final Consumer<Yml> onSuccess, final
167167
} catch (ExecutionException | TaskRejectedException e) {
168168
LOGGER.warn("Fail to get task executor for node: " + root.getPath());
169169
nodeService.updateYmlState(root, YmlStatusValue.ERROR, e.getMessage());
170+
171+
if (onError != null) {
172+
onError.accept(e);
173+
}
170174
}
171175

172176
return root;

0 commit comments

Comments
 (0)