From 2d84c98565840e959924f37cff057e684f75a829 Mon Sep 17 00:00:00 2001 From: Timothy Fike Date: Thu, 17 Nov 2016 18:08:44 -0500 Subject: [PATCH] Allow sending Error objects to alertError instead of just plain strings. --- public/src/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/src/app.js b/public/src/app.js index ba1f6d39ff..cb2775eda2 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -134,6 +134,8 @@ app.cacheBuster = null; }; app.alertError = function (message, timeout) { + message = message.message || message + if (message === '[[error:invalid-session]]') { return app.handleInvalidSession(); }