Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit a6ee774

Browse files
committed
improve Node file error
1 parent af324ab commit a6ee774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/system-fetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
var fs;
6060
fetchTextFromURL = function(url, fulfill, reject) {
6161
if (url.substr(0, 8) != 'file:///')
62-
throw 'Only file URLs of the form file:/// allowed running in Node.';
62+
throw new Error('Unable to fetch "' + url + '". Only file URLs of the form file:/// allowed running in Node.');
6363
fs = fs || require('fs');
6464
if (isWindows)
6565
url = url.replace(/\//g, '\\').substr(8);

0 commit comments

Comments
 (0)