From 935839357bbf824609bb85f7c0fcd0e16cf27abd Mon Sep 17 00:00:00 2001 From: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com> Date: Mon, 29 May 2023 23:27:17 +0200 Subject: [PATCH] Update HttpResponseWrapper.h --- src/HttpResponseWrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpResponseWrapper.h b/src/HttpResponseWrapper.h index 44ea4014..6c4678e9 100644 --- a/src/HttpResponseWrapper.h +++ b/src/HttpResponseWrapper.h @@ -36,7 +36,7 @@ struct HttpResponseWrapper { Isolate *isolate = args.GetIsolate(); auto *res = (uWS::HttpResponse *) args.Holder()->GetAlignedPointerFromInternalField(0); if (!res) { - args.GetReturnValue().Set(isolate->ThrowException(v8::Exception::Error(String::NewFromUtf8(isolate, "Invalid access of discarded (invalid, deleted) uWS.HttpResponse/SSLHttpResponse.", NewStringType::kNormal).ToLocalChecked()))); + args.GetReturnValue().Set(isolate->ThrowException(v8::Exception::Error(String::NewFromUtf8(isolate, "uWS.HttpResponse must not be accessed after uWS.HttpResponse.onAborted callback, or after a successful response. See documentation for uWS.HttpResponse and consult the user manual.", NewStringType::kNormal).ToLocalChecked()))); } if constexpr (PROTOCOL == 2) {