This is an automated email from the git hooks/post-receive script. New commit to branch stack/remove_webmotion in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 249e1ffd6cc34d117e92b12eeb72bf72e29eab64 Author: Brendan Le Ny <bleny@codelutin.com> Date: Fri Oct 18 10:20:58 2019 +0200 Prevent error on loading pollen while disconnected --- pollen-ui-riot-js/src/main/web/js/Session.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pollen-ui-riot-js/src/main/web/js/Session.js b/pollen-ui-riot-js/src/main/web/js/Session.js index 9385ac5e..ec5b8a95 100644 --- a/pollen-ui-riot-js/src/main/web/js/Session.js +++ b/pollen-ui-riot-js/src/main/web/js/Session.js @@ -99,6 +99,7 @@ class Session { start() { this.updateConfigurationServer(); this.updateUser(); + this.userPromise.catch(() => { /* prevent uncatched promise */ }); this.updateGtu(); } @@ -121,7 +122,7 @@ class Session { bus.trigger("userNoMoreConnected"); }); } else { - this.userPromise = Promise.reject(); + this.userPromise = Promise.resolve("user not connected"); } } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.