aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-remote/src/main/kotlin/pl
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-02-08 15:51:55 +0100
committerRobert Jaros <rjaros@finn.pl>2020-02-08 15:51:55 +0100
commit743d093a5dc4290001fcae79ac545156df9334f3 (patch)
tree4dce33f0c416d6ba645addc6f161a33d5a5aa5b0 /kvision-modules/kvision-remote/src/main/kotlin/pl
parentca383fae2cef7e60909f57114a203ced1da796ff (diff)
downloadkvision-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.kt2
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 {