throw a reference error if the connection failed

This commit is contained in:
buzz-lightsnack-2007 2024-05-06 09:51:31 +08:00
parent 2588b3ff30
commit bf5b67ef9a

View file

@ -40,6 +40,8 @@ export default class net {
} }
}; };
}; };
} else if (!CONNECT.ok) {
throw new ReferenceError();
} }
} catch(err) { } catch(err) {
throw err; throw err;