commit fea7b98fd9f8c6c12c897aff646b7d40d61c5162
parent e5479d4d16129b2be0b9c13a30ca19b54a9bae56
Author: Florian Dold <florian@dold.me>
Date: Tue, 20 Dec 2022 10:09:25 +0100
curl error message
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/quickjs-libc.c b/quickjs-libc.c
@@ -2227,7 +2227,7 @@ static JSValue js_os_fetchHttp(JSContext *ctx, JSValueConst this_val,
res = curl_easy_perform(curl);
if (CURLE_OK != res) {
- JS_ThrowInternalError(ctx, "fetch failed");
+ JS_ThrowInternalError(ctx, "fetch failed: %s", curl_easy_strerror (res));
goto exception;
}
ret_val = JS_NewObject(ctx);