Skip to content

Commit

Permalink
feat(api): exit when the api service failed to start
Browse files Browse the repository at this point in the history
  • Loading branch information
halibobo1205 committed May 27, 2024
1 parent 50b8227 commit 0e654f4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ public void shutdown() {

@Override
public void startServices() {
services.start();
try {
services.start();
} catch (Exception e) {
logger.error("Failed to start services", e);
System.exit(1);
}
}

@Override
Expand Down

0 comments on commit 0e654f4

Please sign in to comment.