From 030e5ea61fe10f88098f9e2e36c1543c0b03ec82 Mon Sep 17 00:00:00 2001 From: Geert-Jan Brits Date: Thu, 5 Nov 2015 23:31:21 +0100 Subject: [PATCH] Do no error on trying to follow a non-url --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0e09bcc..776fab0 100644 --- a/index.js +++ b/index.js @@ -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);