loleaflet/src/core/Socket.js |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 03f912115a93e94840c8cedb23ab7d5698c1257a
Author: Henry Castro <hcas...@collabora.com>
Date:   Mon Oct 10 16:03:30 2016 -0400

    loleaflet: do not show internal errors
    
    Internal error message, it was intended for debugging purposes,
    so it is not necessary to show them to final users

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index c4bb43f..d26277d 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -336,12 +336,7 @@ L.Socket = L.Class.extend({
                        this._map._docLayer.removeAllViews();
                }
 
-               if (e.code && e.reason) {
-                       this._map.fire('error', {msg: e.reason});
-               }
-               else {
-                       this._map.fire('error', {msg: _('Well, this is 
embarrassing, we cannot connect to your document. Please try again.'), cmd: 
'socket', kind: 'closed', id: 4});
-               }
+               this._map.fire('error', {msg: _('Well, this is embarrassing, we 
cannot connect to your document. Please try again.'), cmd: 'socket', kind: 
'closed', id: 4});
        },
 
        parseServerCmd: function (msg) {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to