Skip to content

Commit

Permalink
chore(sample): Update CPP Turbo Module crash to use runtime exception (
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich authored Apr 21, 2023
1 parent 1cd7e1e commit d541acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample-new-architecture/tm/NativeSampleModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace facebook::react

void NativeSampleModule::crash(jsi::Runtime &rt)
{
throw "Error from native cxx module";
throw std::runtime_error("Error from native cxx module");
}

} // namespace facebook::react

0 comments on commit d541acf

Please sign in to comment.