throw a reference error if the connection failed
This commit is contained in:
parent
2588b3ff30
commit
bf5b67ef9a
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ export default class net {
|
|||
}
|
||||
};
|
||||
};
|
||||
} else if (!CONNECT.ok) {
|
||||
throw new ReferenceError();
|
||||
}
|
||||
} catch(err) {
|
||||
throw err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue