The host could give an useful response with information about the error.
This commit is contained in:
committed by
Joshua Granick
parent
70794d6f3e
commit
69e758a9a2
@@ -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)});
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user