From 7d6b4b621fd1b7a83fd64d512708fca3de8d04c1 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 4 Nov 2015 14:50:56 -0500 Subject: [PATCH] Show an error if the gunzip returns an empty buffer --- static/js/services/datafile-service.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/services/datafile-service.js b/static/js/services/datafile-service.js index 2471ac32f..76197a666 100644 --- a/static/js/services/datafile-service.js +++ b/static/js/services/datafile-service.js @@ -55,6 +55,11 @@ angular.module('quay').factory('DataFileService', [function() { return; } + if (plain.byteLength == 0) { + failure(); + return; + } + dataFileService.tryAsTar_(plain, success, failure); };