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

Calling the failure block of send tags for bad input #952

Merged
merged 2 commits into from
Jun 25, 2021

Conversation

emawby
Copy link
Contributor

@emawby emawby commented Jun 23, 2021

Previously we would log a warning and return on bad input for the sendTags method. Now we will also call the failure block with an error object with information on what went wrong. This fixes #951


This change is Reviewable

@emawby emawby requested review from jkasten2 and Jeasmine June 23, 2021 19:29
Previously we would log a warning and return on bad input for the sendTags method. Now we will also call the failure block with an error object with information on what went wrong. This fixes #951
@emawby emawby force-pushed the fix/failure_block_in_send_tags branch from e86eba0 to a898d60 Compare June 23, 2021 19:32
Copy link
Contributor

@Jeasmine Jeasmine left a comment

Choose a reason for hiding this comment

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

LGTM nit comment


// Make sure the tags were not sent.
[NSObjectOverrider runPendingSelectors];
[UnitTestCommonMethods runBackgroundThreads];
[NSObjectOverrider runPendingSelectors];


Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this extra \n?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

@emawby emawby force-pushed the fix/failure_block_in_send_tags branch from a898d60 to d2bd2e4 Compare June 24, 2021 19:03
Copy link
Member

@jkasten2 jkasten2 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, 1 of 1 files at r3.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Jeasmine)

@emawby emawby merged commit 9e6feb0 into main Jun 25, 2021
@emawby emawby deleted the fix/failure_block_in_send_tags branch June 25, 2021 18:59
@emawby emawby mentioned this pull request Jun 30, 2021
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.

sendTags doesn't return error when tag type is invalid
3 participants