-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1215 from bugsnag/nickdowell/crash-info-fixes
Crash info fixes
- Loading branch information
Showing
3 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,17 +111,16 @@ class BareboneTestUnhandledErrorScenario: Scenario { | |
} | ||
} else { | ||
// The version of the app at crash time. | ||
config.addMetadata(["group": "users"], section: "user") | ||
config.appVersion = "12.3" | ||
config.bundleVersion = "12301" | ||
config.context = "Something" | ||
config.setUser("barfoo", withEmail: "[email protected]", andName: "Bar Foo") | ||
} | ||
super.startBugsnag() | ||
} | ||
|
||
override func run() { | ||
Bugsnag.setContext("Something") | ||
Bugsnag.setUser("barfoo", withEmail: "[email protected]", andName: "Bar Foo") | ||
Bugsnag.addMetadata(["group": "users"], section: "user") | ||
|
||
// Triggers "Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: ..." | ||
print(payload.name) | ||
} | ||
|