diff --git a/app/assets/javascripts/discourse/routes/new-message.js.es6 b/app/assets/javascripts/discourse/routes/new-message.js.es6 index 845d10e8896..c5d3ab849b5 100644 --- a/app/assets/javascripts/discourse/routes/new-message.js.es6 +++ b/app/assets/javascripts/discourse/routes/new-message.js.es6 @@ -12,7 +12,7 @@ export default Discourse.Route.extend({ } else { bootbox.alert(I18n.t("composer.cant_send_pm", {username: user.username})); } - }).catch((error) => { + }).catch(() => { bootbox.alert(I18n.t("generic_error")); }); });