Skip to content

Commit

Permalink
https://github.com/geoip-lite/node-geoip/pull/257
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek committed Sep 6, 2023
1 parent 34bdd76 commit 92a5681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/updatedb.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function check(database, cb) {
console.log(chalk.red('ERROR') + response.data);
console.log(chalk.red('ERROR') + ': HTTP Request Failed [%d %s]', status, http.STATUS_CODES[status]);
client.abort();
process.exit();
process.exit(1);
}

let str = '';
Expand All @@ -200,7 +200,7 @@ function check(database, cb) {
console.log(chalk.red('ERROR') + ': Could not retrieve checksum for', database.type, chalk.red('Aborting'));
console.log('Run with "force" to update without checksum');
client.abort();
process.exit();
process.exit(1);
}
cb(null, database);
});
Expand Down Expand Up @@ -229,7 +229,7 @@ function fetch(database, cb) {
if (status !== 200) {
console.error(chalk.red('ERROR') + ': HTTP Request Failed [%d %s]', status, http.STATUS_CODES[status]);
client.abort();
process.exit();
process.exit(1);
}

let tmpFilePipe;
Expand Down
2 changes: 1 addition & 1 deletion test/geo-lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (process.argv.length > 2) {
console.dir(geoIp2.lookup(process.argv[2]));
const t3 = +new Date();
console.log('Startup: %dms, exec: %dms', t2 - t1, t3 - t2);
process.exit();
process.exit(1);
}

const f = [];
Expand Down

0 comments on commit 92a5681

Please sign in to comment.