Archived
1 parent
a625597be3
commit
2b6281d96d
1 file changed
+1
@@ -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!");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user