throws mysql error

Signed-off-by: Walamana <joniogerg@gmail.com>
This commit is contained in:
Walamana 2017-11-28 20:36:50 +01:00
parent c6c5cd43e4
commit 3a49236ba7

1
app.js
View File

@ -26,6 +26,7 @@ con.connect(err => {
console.log("Cant connect to MySQL database"); console.log("Cant connect to MySQL database");
console.log(err); console.log(err);
cause = err; cause = err;
throw err;
} }
console.log("Connected to database!"); console.log("Connected to database!");
}); });