Commit 3badac40 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Raise nice error if an unsupported URL import was attempted

parent 21953d8b
......@@ -250,6 +250,9 @@ function Compiler (editor, handleGithubCall) {
cb(null, 'Unable to import "' + m + '"');
});
return;
} else if (/^[^:]*:\/\//.exec(m)) {
cb(null, 'Unable to import "' + m + '": Unsupported URL');
return;
} else {
cb(null, 'Unable to import "' + m + '"');
return;
......
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