Skip to content

Commit 3239f2b

Browse files
committed
chore: add error location
1 parent c7aa8fe commit 3239f2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/host/cpp/ThreadsafeFunction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ ThreadSafeFunction::ThreadSafeFunction(
4343
const auto status =
4444
napi_create_reference(env, jsFunc, INITIAL_REF_COUNT, &jsFuncRef_);
4545
if (status != napi_ok) {
46-
napi_fatal_error(nullptr,
47-
0,
46+
napi_fatal_error("ThreadSafeFunction::ThreadSafeFunction",
47+
NAPI_AUTO_LENGTH,
4848
"Failed to create JS function reference",
4949
NAPI_AUTO_LENGTH);
5050
}

0 commit comments

Comments
 (0)