The host could give an useful response with information about the error.

This commit is contained in:
Pablo Martin
2017-10-18 20:55:48 +02:00
committed by Joshua Granick
parent 70794d6f3e
commit 69e758a9a2

View File

@@ -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)});
}