From 9b715f9632d5555fd628ff8b27e13728ba4354ff Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Thu, 5 Jan 2017 17:38:03 -0500 Subject: [PATCH] put error logging inside the curried callback --- .../src/main/webapp/resources/js/admin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openid-connect-server-webapp/src/main/webapp/resources/js/admin.js b/openid-connect-server-webapp/src/main/webapp/resources/js/admin.js index 48e7e09de..766ca405e 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/js/admin.js +++ b/openid-connect-server-webapp/src/main/webapp/resources/js/admin.js @@ -375,14 +375,14 @@ var ErrorHandlerView = Backbone.View.extend({ message = {}; } - if (message.log) { - console.log(message.log); - } - var _self = this; return function(model, response, options) { + if (message.log) { + console.log(message.log); + } + _self.showErrorMessage( _self.headerTemplate({message: message, model: model, response: response, options: options}), _self.template({message: message, model: model, response: response, options: options})