File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
adminforth/dataConnectors Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class MongoConnector extends AdminForthBaseConnector implements IAdminForthDataS
2121 } ) ;
2222 console . log ( 'Connected to Mongo' ) ;
2323 } catch ( e ) {
24- throw new Error ( `Failed to connect to Mongo: ${ e } ` ) ;
24+ console . error ( `Failed to connect to Mongo: ${ e } ` ) ;
2525 }
2626 } ) ( ) ;
2727 }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class MysqlConnector extends AdminForthBaseConnector implements IAdminForthDataS
1010 try {
1111 this . client = await mysql . createConnection ( url ) ;
1212 } catch ( e ) {
13- throw new Error ( `Failed to connect to MySQL: ${ e } ` ) ;
13+ console . error ( `Failed to connect to MySQL: ${ e } ` ) ;
1414 }
1515 }
1616
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class PostgresConnector extends AdminForthBaseConnector implements IAdminForthDa
2121 this . setupClient ( url ) ;
2222 } ) ;
2323 } catch ( e ) {
24- throw new Error ( `Failed to connect to Postgres ${ e } ` ) ;
24+ console . error ( `Failed to connect to Postgres ${ e } ` ) ;
2525 }
2626 }
2727
You can’t perform that action at this time.
0 commit comments