mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix: error handling
This commit is contained in:
@@ -198,9 +198,3 @@ export class HocusPocusServerManager {
|
||||
HocusPocusServerManager.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Legacy function for backward compatibility
|
||||
export const getHocusPocusServer = async (): Promise<Hocuspocus> => {
|
||||
const manager = HocusPocusServerManager.getInstance();
|
||||
return await manager.initialize();
|
||||
};
|
||||
|
||||
@@ -35,14 +35,14 @@ export class Server {
|
||||
.then(() => {
|
||||
logger.info("Redis setup completed");
|
||||
const manager = HocusPocusServerManager.getInstance();
|
||||
manager.initialize().catch(() => {
|
||||
manager.initialize().catch((error) => {
|
||||
logger.error("Failed to initialize HocusPocusServer:");
|
||||
process.exit(1);
|
||||
throw error;
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
logger.error("Failed to setup Redis:", error);
|
||||
process.exit(1);
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user