<commit_before>#!/usr/bin/env node
'use strict';
var meow = require('meow');
var logSymbols = require('log-symbols');
var isUp = require('./');

var cli = meow({
	help: [
		'Example',
		'  is-up sindresorhus.com',
		'  ' + logSymbols.success + ' Up'
	].join('\n')
});

isUp(cli.input, function (err, up) {
	if (err) {
		throw err;
	}

	console.log(up ? logSymbols.success + ' Up' : logSymbols.error + ' Down');
	process.exit(up ? 0 : 1);
});<commit_msg>Don't throw errors in CLI<commit_after>#!/usr/bin/env node
'use strict';
var meow = require('meow');
var logSymbols = require('log-symbols');
var isUp = require('./');

var cli = meow({
	help: [
		'Example',
		'  is-up sindresorhus.com',
		'  ' + logSymbols.success + ' Up'
	].join('\n')
});

isUp(cli.input, function (err, up) {
	if (err) {
		console.error(err.message);
		process.exit(2);
	}

	console.log(up ? logSymbols.success + ' Up' : logSymbols.error + ' Down');
	process.exit(up ? 0 : 1);
});
{'fraction_non_alphanumeric': 0.21278825995807127, 'fraction_numerical': 0.005241090146750524, 'mean_word_length': 3.6813725490196076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5634911', 'n_tokens_mistral': 400, 'n_tokens_neox': 382, 'n_words': 82}