aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-remote/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-modules/kvision-remote/src/main')
-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 {