Show an error if the gunzip returns an empty buffer

This commit is contained in:
Joseph Schorr 2015-11-04 14:50:56 -05:00
parent 249269ad50
commit 7d6b4b621f

View file

@ -55,6 +55,11 @@ angular.module('quay').factory('DataFileService', [function() {
return;
}
if (plain.byteLength == 0) {
failure();
return;
}
dataFileService.tryAsTar_(plain, success, failure);
};