Raise nice error if an unsupported URL import was attempted

pull/1/head
Alex Beregszaszi 8 years ago
parent 21953d8bcf
commit 3badac4075
  1. 3
      src/app/compiler.js

@ -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;

Loading…
Cancel
Save