aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/upload.js
diff options
context:
space:
mode:
Diffstat (limited to 'interface/js/app/upload.js')
-rw-r--r--interface/js/app/upload.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js
index 064cadc56..bbd109639 100644
--- a/interface/js/app/upload.js
+++ b/interface/js/app/upload.js
@@ -148,10 +148,7 @@ define(["jquery"],
rspamd.alertMessage("alert-error", "Cannot scan data");
}
},
- error: function (jqXHR, textStatus, errorThrown) {
- rspamd.alertMessage("alert-error", "Cannot upload data: " +
- textStatus + ", " + errorThrown);
- },
+ errorMessage: "Cannot upload data",
statusCode: {
404: function () {
rspamd.alertMessage("alert-error", "Cannot upload data, no server found");