mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-13 16:22:52 +00:00
Fixes no error issue for script
This commit is contained in:
@@ -35,7 +35,10 @@ const main = async () => {
|
||||
};
|
||||
|
||||
if (require.main === module) {
|
||||
main().catch(console.error);
|
||||
main().catch(e => {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
});
|
||||
} else {
|
||||
module.exports = { toHostList, registerDomains };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user