Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NSError errors in place of NSException #81

Merged
merged 1 commit into from
Jun 25, 2021
Merged

Conversation

avivian
Copy link
Contributor

@avivian avivian commented Jun 24, 2021

Will require a major version bump.

@avivian avivian requested a review from mjtalbot June 24, 2021 19:16
RiveLinearAnimation* animation2ByIndex = [artboard animationFromIndex:1 error:&error];
XCTAssertNil(error);
RiveLinearAnimation* animation2ByName = [artboard animationFromName:@"artboard2animation2" error:&error];
XCTAssertNil(error);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:puke:


XCTAssertNil(animation);
XCTAssertNotNil(error);
XCTAssertEqualObjects([error domain], @"rive.app.ios.runtime");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can probably wrap this set into some helper thingie, looks like there's some duplication going on here

let delegate = MrDelegate()
let view = RiveView.init(
let view = try RiveView.init(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this magically bubbles em up eh?

Copy link
Collaborator

@mjtalbot mjtalbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. looks like you had fun with it...

@avivian avivian merged commit c9e6216 into master Jun 25, 2021
@mjtalbot mjtalbot deleted the nserror-change branch July 30, 2021 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants