Skip to content

Commit

Permalink
Do no error on trying to follow a non-url
Browse files Browse the repository at this point in the history
  • Loading branch information
Geert-Jan Brits committed Nov 5, 2015
1 parent 40c8537 commit 030e5ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ function Xray() {

// ensure that a@href is a URL
if (!isUrl(url)) {
debug('%s is not a url!', url);
return next(new Error(url + ' is not a URL'));
debug('%s is not a url. Skipping!', url);
return node.html(load(""), next);
}

debug('resolved "%s" to a %s', scope, url);
Expand Down

0 comments on commit 030e5ea

Please sign in to comment.