Skip to content

Commit

Permalink
add NdkLinkError to metadata (#2126)
Browse files Browse the repository at this point in the history
* feat(report): add NdkLinkError to metadata (#2070)

Commit 2f5a951 added metadata to AnrLinkError but didn't to NdkLinkError.

Copy the solution from AnrLinkError to NdkLinkError.

* chore(changelog) change log for pr

---------

Co-authored-by: Blaž Tomažič <blaz.tomazic@gmail.com>
  • Loading branch information
YYChen01988 and blaztinn authored Jan 21, 2025
1 parent f325a5f commit 10d7d68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

* Introduced a new option in the `exitinfo` plugin for generating ANRs that does not have a matching Events (such as background ANRs)
[#2116](https://github.com/bugsnag/bugsnag-android/pull/2116)
* Add original error class and message to metadata for link errors loading BugSnag NDK libraries
[#2126](https://github.com/bugsnag/bugsnag-android/pull/2126)

## 6.10.0 (2024-11-14)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ internal class NdkPlugin : Plugin {
private fun performOneTimeSetup(client: Client) {
libraryLoader.loadLibrary("bugsnag-ndk", client) {
val error = it.errors[0]
it.addMetadata("LinkError", "errorClass", error.errorClass)
it.addMetadata("LinkError", "errorMessage", error.errorMessage)

error.errorClass = "NdkLinkError"
error.errorMessage = LOAD_ERR_MSG
true
Expand Down

0 comments on commit 10d7d68

Please sign in to comment.