Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Hofmann <[email protected]>
  • Loading branch information
brustolin and philipphofmann authored Apr 21, 2022
1 parent 3dc585e commit 11e5016
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Unreleased

- feat: Error Screenshots (#1751)
- feat: Attach screenshots for errors (#1751)
- fix: Remove authenticated pointer stripping for iOS backtraces (#1757)

## 7.13.0
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/Public/SentryOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ NS_SWIFT_NAME(Options)
@property (nonatomic, assign) BOOL enableUIViewControllerTracking;

/**
* Automatically attaches a screenshot when an error or exception is captured.
* Automatically attaches a screenshot when capturing an error or exception.
*
* Default value is <code>NO</code>
*/
Expand Down
4 changes: 2 additions & 2 deletions Sources/Sentry/SentryClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ - (SentryId *)captureException:(NSException *)exception
return [self sendEvent:event withSession:session withScope:scope];
}

- (SentryEvent *)buildExceptionEvent:(NSException *)exception scope:(SentryScope *)scope
- (SentryEvent *)buildExceptionEvent:(NSException *)exception
{
SentryEvent *event = [[SentryEvent alloc] initWithLevel:kSentryLevelError];
SentryException *sentryException = [[SentryException alloc] initWithValue:exception.reason
Expand Down Expand Up @@ -189,7 +189,7 @@ - (SentryId *)captureError:(NSError *)error
return [self sendEvent:event withSession:session withScope:scope];
}

- (SentryEvent *)buildErrorEvent:(NSError *)error scope:(SentryScope *)scope
- (SentryEvent *)buildErrorEvent:(NSError *)error
{
SentryEvent *event = [[SentryEvent alloc] initWithError:error];

Expand Down
2 changes: 1 addition & 1 deletion Tests/SentryTests/SentryClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class SentryClientTest: XCTestCase {
sut.attachmentProcessor = processor
sut.captureError(error, with: fixture.session, with: Scope())

let sendedAttachments = fixture.transportAdapter.sentEventsWithSessionTraceState.first?.attachments ?? []
let sentAttachments = fixture.transportAdapter.sentEventsWithSessionTraceState.first?.attachments ?? []

XCTAssertEqual(sendedAttachments.count, 1)
XCTAssertEqual(extraAttachment, sendedAttachments.first)
Expand Down

0 comments on commit 11e5016

Please sign in to comment.