Skip to content

Commit d9740f8

Browse files
committed
fixed: bug: server started without database initialization
1 parent d615962 commit d9740f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Projects/BooksLibrary/src/database/database.connector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class DatabaseConnector {
1212
return true;
1313
} catch (error) {
1414
Logger.instance().log('Create database error: ' + error.message);
15-
return false;
15+
throw error;
1616
}
1717
};
1818

Projects/BooksLibrary/src/database/sql/sequelize/database.connector.sequelize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class DatabaseConnector_Sequelize implements IDatabaseConnector {
5757
return true;
5858
} catch (err) {
5959
Logger.instance().log(err.message);
60-
return false;
60+
throw err;
6161
}
6262
};
6363

0 commit comments

Comments
 (0)