Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adminforth/dataConnectors/mongo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MongoConnector extends AdminForthBaseConnector implements IAdminForthDataS
});
console.log('Connected to Mongo');
} catch (e) {
throw new Error(`Failed to connect to Mongo: ${e}`);
console.error(`Failed to connect to Mongo: ${e}`);
}
})();
}
Expand Down
2 changes: 1 addition & 1 deletion adminforth/dataConnectors/mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MysqlConnector extends AdminForthBaseConnector implements IAdminForthDataS
try {
this.client = await mysql.createConnection(url);
} catch (e) {
throw new Error(`Failed to connect to MySQL: ${e}`);
console.error(`Failed to connect to MySQL: ${e}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion adminforth/dataConnectors/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PostgresConnector extends AdminForthBaseConnector implements IAdminForthDa
this.setupClient(url);
});
} catch (e) {
throw new Error(`Failed to connect to Postgres ${e}`);
console.error(`Failed to connect to Postgres ${e}`);
}
}

Expand Down