[Libreoffice-commits] online.git: loleaflet/src

Henry Castro hcastro at collabora.com
Mon Oct 10 20:05:07 UTC 2016


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

New commits:
commit 03f912115a93e94840c8cedb23ab7d5698c1257a
Author: Henry Castro <hcastro at 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) {


More information about the Libreoffice-commits mailing list