throws now error
Signed-off-by: Walamana <joniogerg@gmail.com>
This commit is contained in:
parent
a625597be3
commit
2b6281d96d
1
app.js
1
app.js
@ -17,6 +17,7 @@ var con = mysql.createConnection({
|
|||||||
con.connect(err => {
|
con.connect(err => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log("Cant connect to MySQL database");
|
console.log("Cant connect to MySQL database");
|
||||||
|
throw err;
|
||||||
}
|
}
|
||||||
console.log("Connected to database!");
|
console.log("Connected to database!");
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user