Skip to content

Commit

Permalink
fix(client): Fix client build
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Dec 30, 2023
1 parent c73c1a7 commit 2bf91fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/bindings/V8Natives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ inline void ShowNativeArgParseErrorMsg(V8ResourceImpl* resource, v8::Local<v8::V
<< "(" << V8Helpers::GetJSValueTypeName(val) << ")"
<< " could not be parsed to type " << GetNativeTypeName(argType) << " (" << native->GetName() << ")";

Log::Error << source.ToString() << " " << errorMsg.str() << Log::Endl;
Log::Error << source.ToString(isolate) << " " << errorMsg.str() << Log::Endl;
Log::Error << "Check the documentation for the needed arguments of this native." << Log::Endl;

resource->DispatchErrorEvent(errorMsg.str(), source.GetFileName(), source.GetLineNumber(), V8Helpers::GetStackTrace(errorMsg.str()));
Expand All @@ -109,7 +109,7 @@ inline void ShowNativeArgMismatchErrorMsg(V8ResourceImpl* resource, alt::INative
std::stringstream errorMsg;
errorMsg << "Native argument size mismatch. Expected: " << expected << ", Received: " << received << " (" << native->GetName() << ")";

Log::Error << source.ToString() << " " << errorMsg.str() << Log::Endl;
Log::Error << source.ToString(isolate) << " " << errorMsg.str() << Log::Endl;
Log::Error << "Check the documentation for the needed arguments of this native." << Log::Endl;

resource->DispatchErrorEvent(errorMsg.str(), source.GetFileName(), source.GetLineNumber(), V8Helpers::GetStackTrace(errorMsg.str()));
Expand Down
4 changes: 2 additions & 2 deletions client/src/workers/CWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ void CWorker::SetupIsolate()
case v8::kPromiseRejectAfterResolved:
{
std::ostringstream stream;
stream << location.ToString() << " Promise rejected after being resolved (" << *v8::String::Utf8Value(isolate, value->ToString(ctx).ToLocalChecked()) << ")";
stream << location.ToString(isolate) << " Promise rejected after being resolved (" << *v8::String::Utf8Value(isolate, value->ToString(ctx).ToLocalChecked()) << ")";
worker->EmitError(stream.str());
break;
}
case v8::kPromiseResolveAfterResolved:
{
std::ostringstream stream;
stream << location.ToString() << " Promise resolved after being resolved (" << *v8::String::Utf8Value(isolate, value->ToString(ctx).ToLocalChecked()) << ")";
stream << location.ToString(isolate) << " Promise resolved after being resolved (" << *v8::String::Utf8Value(isolate, value->ToString(ctx).ToLocalChecked()) << ")";
worker->EmitError(stream.str());
break;
}
Expand Down

0 comments on commit 2bf91fd

Please sign in to comment.