Skip to content

Split parse_url to allow for external error handling - #2341

Merged
bors-servo merged 1 commit into
servo:masterfrom
Manishearth:error-parse
May 6, 2014
Merged

bors-servo merged 1 commit into
servo:masterfrom
Manishearth:error-parse

Conversation

@Manishearth

Copy link
Copy Markdown
Member

Sometimes it's useful to bubble out the error from the URL parsing so the caller can deal with the result as per its needs.

The XHR open(), for example, is one place where the bubbling out of an error is required.

Blocks #2282

@hoppipolla-critic-bot

Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/1473

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@jdm

jdm commented May 6, 2014

Copy link
Copy Markdown
Member

Just needs a squash.

@Manishearth

Copy link
Copy Markdown
Member Author

Squashed :)

bors-servo pushed a commit that referenced this pull request May 6, 2014
Sometimes it's useful to bubble out the error from the URL parsing so the caller can deal with the result as per its needs.

[The XHR `open()`](http://xhr.spec.whatwg.org/#the-open()-method), for example, is one place where the bubbling out of an error is required.

Blocks #2282
@bors-servo
bors-servo merged commit 470250e into servo:master May 6, 2014
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.

4 participants