From 69e758a9a28264c9cdddd4d4d97ed5748c98b11b Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Wed, 18 Oct 2017 20:55:48 +0200 Subject: [PATCH] The host could give an useful response with information about the error. --- lime/_backend/native/NativeHTTPRequest.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lime/_backend/native/NativeHTTPRequest.hx b/lime/_backend/native/NativeHTTPRequest.hx index 90feb58b4..ef8d61170 100644 --- a/lime/_backend/native/NativeHTTPRequest.hx +++ b/lime/_backend/native/NativeHTTPRequest.hx @@ -305,8 +305,8 @@ class NativeHTTPRequest { threadPool.sendComplete ({ instance: this, promise: promise, result: bytes }); } else { - - threadPool.sendError ({ instance: this, promise: promise, error: "Status " + parent.responseStatus }); + + threadPool.sendError ({ instance: this, promise: promise, error: bytes == null ? 'Status ${parent.responseStatus}' : Std.string(bytes)}); }