Catch non-zipfile errors

This commit is contained in:
Tom MacWright 2011-01-24 10:46:35 -05:00
parent 559e755699
commit ab0e95385c

View File

@ -264,7 +264,11 @@ var External = function External(env) {
console.log('unzipping download from ' + filename);
// https://github.com/springmeyer/node-zipfile
var zip = require('zipfile');
var zf = new zip.ZipFile(filename);
try {
var zf = new zip.ZipFile(filename);
} catch (e) {
callback(e);
}
var dirname = that.pos(resource_url);
Step(
function() {