gridftp: handle errors during fileupload
[qcg-portal.git] / filex / templates / filex / upload.js.html
index e399717..7b64658 100644 (file)
                 data.context.find('.progress-info').text('Zakończono');
             },
             fail: function (e, data) {
-                data.context.find('.progress-info').text('Błąd');
+                data.context.find('.progress-info').text((data.jqXHR.responseJSON || {}).error || 'Błąd');
                 console.error(data);
             }
         });