Skip to content

Commit 4466589

Browse files
committed
show error fix
1 parent 92bae86 commit 4466589

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,7 +2198,9 @@ module openflow {
21982198
$('#workflowform :button').hide();
21992199
$('input[type="submit"]').hide();
22002200
if (this.model.state == "failed") {
2201-
if (!this.model.payload) {
2201+
if ((this.model as any).error != null && (this.model as any).error != "") {
2202+
this.errormessage = (this.model as any).error;
2203+
} else if (!this.model.payload) {
22022204
this.errormessage = "An unknown error occurred";
22032205
} else if (this.model.payload.message != null && this.model.payload.message != "") {
22042206
this.errormessage = this.model.payload.message;

0 commit comments

Comments
 (0)