Skip to content

Commit ee65006

Browse files
committed
display error message when input flow fails
1 parent 7aebb79 commit ee65006

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

quick-start/src/main/resources/static/top/topController.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,12 @@
132132
TaskManager.waitForTask(flow.runFlowTaskId)
133133
.success(function (result) {
134134
if (!flow.runFlowCancelled) {
135-
DataHub.displayMessage('Flow run is successful.', 'success', 'notification', false);
135+
if (result.success) {
136+
DataHub.displayMessage('Flow run is successful.', 'success', 'notification', false);
137+
}
138+
else {
139+
DataHub.displayMessage(result.errorMessage, 'error', 'notification', false);
140+
}
136141
}
137142
})
138143
.error(function () {

0 commit comments

Comments
 (0)