Skip to content

Commit d541acf

Browse files
chore(sample): Update CPP Turbo Module crash to use runtime exception (#2986)
1 parent 1cd7e1e commit d541acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample-new-architecture/tm/NativeSampleModule.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace facebook::react
88

99
void NativeSampleModule::crash(jsi::Runtime &rt)
1010
{
11-
throw "Error from native cxx module";
11+
throw std::runtime_error("Error from native cxx module");
1212
}
1313

1414
} // namespace facebook::react

0 commit comments

Comments
 (0)