mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-12 16:15:21 +00:00
Fixes no error issue for script
This commit is contained in:
1 parent
3a72bb43ba
commit
c95eff3613
1 file changed
+4
-1
@@ -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