lib/open_all_device_scanner.js
function getOnError (msg) {
            return function getLastFoundDevicesErrorHandler (err) {
                console.error('An Error', err, msg, err.stack);
                var errDefered = q.defer();
                errDefered.reject(err);
                return errDefered.promise;
            };
        }
function getOnError (msg) {
            return function getLastFoundDevicesErrorHandler (err) {
                console.error('An Error', err, msg, err.stack);
                var errDefered = q.defer();
                errDefered.reject(err);
                return errDefered.promise;
            };
        }
function getOnError ( msg ) { return function getLastFoundDevicesErrorHandler ( err ) { console . error ( 'An Error' , err , msg , err . stack ) ; var errDefered = q . defer ( ) ; errDefered . reject ( err ) ; return errDefered . promise ; } ; }
Define an error handling function.
Define an error handling function .