diff --git a/keycloak.js b/keycloak.js index 101233f9..fc94f11e 100644 --- a/keycloak.js +++ b/keycloak.js @@ -327,7 +327,10 @@ Keycloak.prototype.getGrant = function (request, response) { self.storeGrant(grant, request, response) return grant }) - .catch(() => { return Promise.reject(new Error('Could not store grant code error')) }) + .catch(reason => { + console.error(reason) + return Promise.reject(new Error('Could not store grant code error')) + }) } return Promise.reject(new Error('Could not obtain grant code error'))