diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-02-08 15:51:55 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-02-08 15:51:55 +0100 |
commit | 743d093a5dc4290001fcae79ac545156df9334f3 (patch) | |
tree | 4dce33f0c416d6ba645addc6f161a33d5a5aa5b0 /kvision-modules/kvision-remote/src/main/kotlin/pl | |
parent | ca383fae2cef7e60909f57114a203ced1da796ff (diff) | |
download | kvision-743d093a5dc4290001fcae79ac545156df9334f3.tar.gz kvision-743d093a5dc4290001fcae79ac545156df9334f3.tar.bz2 kvision-743d093a5dc4290001fcae79ac545156df9334f3.zip |
Fix error handling
Diffstat (limited to 'kvision-modules/kvision-remote/src/main/kotlin/pl')
-rw-r--r-- | kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt index 5112a49c..9110d4df 100644 --- a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt +++ b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt @@ -88,7 +88,7 @@ open class CallAgent { this.error = { xhr: JQueryXHR, _: String, errorText: String -> val message = if (xhr.responseJSON != null && xhr.responseJSON != undefined) { - xhr.responseJSON.toString() + NativeJSON.stringify(xhr.responseJSON) } else if (xhr.responseText != undefined) { xhr.responseText } else { |