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

More graceful rejection on link missing #15

Merged
merged 3 commits into from
Mar 31, 2015

Conversation

theefer
Copy link
Contributor

@theefer theefer commented Mar 30, 2015

When calling getLink(rel) with a rel that is missing, use promise.reject over throw so as to prevent errors being thrown noisily when used from Angular.

Also added some tests for getLink.

@theefer
Copy link
Contributor Author

theefer commented Mar 30, 2015

ping @jamesgorrie

@jamesgorrie
Copy link

👍 Handy

theefer added a commit that referenced this pull request Mar 31, 2015
@theefer theefer merged commit 2688580 into master Mar 31, 2015
@theefer theefer deleted the sc-more-graceful-link-missing branch March 31, 2015 14:11
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.

None yet

2 participants