add console styling

This commit is contained in:
2023-07-24 18:59:55 +02:00
parent 84c0017e2a
commit 8e777ee281
3 changed files with 44 additions and 7 deletions

View File

@@ -22,10 +22,10 @@ class SQLDB {
connect ( ) {
this.sqlConnection.connect( function( err ) {
if ( err ) {
console.error( 'error connecting: ' + err.stack );
console.error( '[ SQL ]: An error ocurred whilst connecting: ' + err.stack );
return;
}
console.log( 'connected' );
console.log( '[ SQL ] Connected to database successfully' );
return 'connection';
} );
}