From 1de58b7be176aeab785b0f446b427feb3d6a3e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 20 Jun 2018 16:31:13 +0200 Subject: [PATCH] error => fail --- src/octoprint/static/js/app/viewmodels/loginstate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/static/js/app/viewmodels/loginstate.js b/src/octoprint/static/js/app/viewmodels/loginstate.js index 4a3f0667b..9cb66f1a2 100644 --- a/src/octoprint/static/js/app/viewmodels/loginstate.js +++ b/src/octoprint/static/js/app/viewmodels/loginstate.js @@ -179,7 +179,7 @@ $(function() { new PNotify({title: gettext("Logout successful"), text: gettext("You are now logged out"), type: "success"}); self.fromResponse(response); }) - .error(function(error) { + .fail(function(error) { if (error && error.status === 401) { self.fromResponse(false); }