Catch non-zipfile errors
This commit is contained in:
parent
559e755699
commit
ab0e95385c
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user