lib/gcli/connectors/websocketserver.js
function(err) {
          console.log('SOCKET ' + command +
                      '(' + debugStr(request.data, 30) + ') Exception');
          util.errorHandler(err);

          socket.emit('reply', {
            id: request.id,
            exception: '' + err
          });
        }
function(err) {
          console.log('SOCKET ' + command +
                      '(' + debugStr(request.data, 30) + ') Exception');
          util.errorHandler(err);

          socket.emit('reply', {
            id: request.id,
            exception: '' + err
          });
        }
function ( err ) { console . log ( 'SOCKET ' + command + '(' + debugStr ( request . data , 30 ) + ') Exception' ) ; util . errorHandler ( err ) ; socket . emit ( 'reply' , { id : request . id , exception : '' + err } ) ; }
Handle errors from exceptions an promise rejections
Handle errors from exceptions an promise rejections