Merge pull request #789 from coreos-inc/dfsbug

Show an error if the gunzip returns an empty buffer
This commit is contained in:
josephschorr 2015-11-09 14:42:35 -05:00
commit a5f4cc19ed

View file

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