Fixes no error issue for script

This commit is contained in:
Akshay Nair
2020-10-06 23:00:57 +05:30
parent 3a72bb43ba
commit c95eff3613
+4 -1
View File
@@ -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 };
}