Skip to content

Commit

Permalink
improve Node file error
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jul 23, 2015
1 parent af324ab commit a6ee774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
var fs;
fetchTextFromURL = function(url, fulfill, reject) {
if (url.substr(0, 8) != 'file:///')
throw 'Only file URLs of the form file:/// allowed running in Node.';
throw new Error('Unable to fetch "' + url + '". Only file URLs of the form file:/// allowed running in Node.');
fs = fs || require('fs');
if (isWindows)
url = url.replace(/\//g, '\\').substr(8);
Expand Down

0 comments on commit a6ee774

Please sign in to comment.