8000 docs: update fatal error example to use common blocked port · mysqljs/mysql@2ddcedd · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ddcedd

Browse files
committed
docs: update fatal error example to use common blocked port
fixes #2519
1 parent 8d245c0 commit 2ddcedd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,12 +1284,12 @@ object. Additionally they typically come with two extra properties:
12841284
[MySQL server error]: https://dev.mysql.com/doc/refman/5.5/en/server-error-reference.html
12851285

12861286
Fatal errors are propagated to *all* pending callbacks. In the example below, a
1287-
fatal error is triggered by trying to connect to an invalid port. Therefore the
1287+
fatal error is triggered by trying to connect to a blocked port. Therefore the
12881288
error object is propagated to both pending callbacks:
12891289

12901290
```js
12911291
var connection = require('mysql').createConnection({
1292-
port: 84943, // WRONG PORT
1292+
port: 1 // example blocked port
12931293
});
12941294

12951295
connection.connect(function(err) {

0 commit comments

Comments
 (0)
0