Skip to content

Commit a379172

Browse files
committed
12
1 parent 3bd3ed3 commit a379172

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,9 +1902,12 @@ module openflow {
19021902
// console.debug("SendOne: queuename " + queuename + " / " + this.myid);
19031903
var result: any = await this.api.QueueMessage(queuename, this.queuename, message, this.queue_message_timeout);
19041904
try {
1905-
result = JSON.parse(result);
1905+
if (typeof result === "string" || result instanceof String) {
1906+
result = JSON.parse(result);
1907+
}
19061908
} catch (error) {
1907-
this.errormessage = "Model contains no form";
1909+
console.log(result);
1910+
this.errormessage = error;
19081911
if (!this.$scope.$$phase) { this.$scope.$apply(); }
19091912
console.error(this.errormessage);
19101913
}

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.26
1+
1.0.27

0 commit comments

Comments
 (0)