diff --git a/src/UI/Release/DownloadReportCell.js b/src/UI/Release/DownloadReportCell.js
index 4f91b817a..c422446fc 100644
--- a/src/UI/Release/DownloadReportCell.js
+++ b/src/UI/Release/DownloadReportCell.js
@@ -14,15 +14,23 @@ module.exports = Backgrid.Cell.extend({
var self = this;
- this.$el.html('');
+ this.$el.html('');
//Using success callback instead of promise so it
//gets called before the sync event is triggered
- this.model.save(null, {
+ var promise = this.model.save(null, {
success : function() {
self.model.set('queued', true);
}
});
+
+ promise.fail(function (xhr) {
+ if (xhr.responseJSON && xhr.responseJSON.message) {
+ self.$el.html(''.format(xhr.responseJSON.message));
+ } else {
+ self.$el.html('');
+ }
+ });
},
render : function() {