Merge pull request #789 from coreos-inc/dfsbug
Show an error if the gunzip returns an empty buffer
This commit is contained in:
commit
a5f4cc19ed
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue