Commit 786c7abf authored by Romain Courteaud's avatar Romain Courteaud

Improve error message to ease debugging.

parent 67bcae7a
...@@ -683,7 +683,7 @@ ...@@ -683,7 +683,7 @@
isAbsoluteURL = new RegExp('^(?:[a-z]+:)?//', 'i'); isAbsoluteURL = new RegExp('^(?:[a-z]+:)?//', 'i');
if (!url || !isAbsoluteURL.test(url)) { if (!url || !isAbsoluteURL.test(url)) {
throw new Error("The second parameter should be an absolute url"); throw new Error("The url should be absolute: " + url);
} }
if (document_element.nodeType === 9) { if (document_element.nodeType === 9) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment