diff --git a/client/lib/handleError.js b/client/lib/handleError.js index a0a8f3142c1..2bd1fec80f6 100644 --- a/client/lib/handleError.js +++ b/client/lib/handleError.js @@ -9,7 +9,7 @@ this.handleError = function(error, useToastr = true) { if (useToastr) { return toastr.error(TAPi18n.__(error.error, error.details), error.details && error.details.errorTitle ? TAPi18n.__(error.details.errorTitle) : null); - } else { - return TAPi18n.__(error.error, error.details); } + + return TAPi18n.__(error.error, error.details); };