Adds error handler

This commit is contained in:
Akshay Nair committed 2020-10-05 15:17:16 +05:30
1 parent f8deebc0c4
commit fb47b37216
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@ const main = async () => {
};
if (require.main === module) {
main();
main().catch(console.error);
} else {
module.exports = { toHostList, registerDomains };
}