Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[staging_parse] Raise error if given invalid source #11

Merged
merged 1 commit into from
Jun 5, 2013
Merged

[staging_parse] Raise error if given invalid source #11

merged 1 commit into from
Jun 5, 2013

Conversation

adrienthebo
Copy link
Member

A string like 'foo:bar' is a valid URI but contains no path.
URI.parse('foo:bar') returns nil, and calling File.extname(nil) raises
"can't convert nil into String".

This commit ensures that the given URI has a valid path and fails early
if the input is malformed.

A string like 'foo:bar' is a valid URI but contains no path.
URI.parse('foo:bar') returns nil, and calling File.extname(nil) raises
"can't convert nil into String".

This commit ensures that the given URI has a valid path and fails early
if the input is malformed.
nanliu added a commit that referenced this pull request Jun 5, 2013
…alformed_uri

[staging_parse] Raise error if given invalid source
@nanliu nanliu merged commit a348e42 into voxpupuli:master Jun 5, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants