function(e) {
        if (e.code === 'EADDRINUSE') {
            logger.error('Error: Port ' + port + ' is already in use.');
            logger.error('Try another one, e.g. pouchdb-server -p ' +
                (parseInt(port) + 1) + '\n');
        } else {
            logger.error('Uncaught error: ' + e);
            logger.error(e.stack);
        }
    }