More descriptive error for missing files.

This commit is contained in:
Young Hahn 2011-05-25 03:12:14 -04:00
parent b32d7140f4
commit bb04c13873

View File

@ -62,7 +62,7 @@ External.prototype.processFile = function(local) {
},
function(err, t) {
if (t) return this();
if (local) throw new Error('File not found.');
if (local) throw new Error('File not found: ' + that.tmp);
return (new get(that.uri)).toDisk(that.tmp, this);
},
function(err) {