Skip to content

Commit

Permalink
fix: Fail early if no config.file is specified. (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored Oct 15, 2024
1 parent a2b1f83 commit c88a392
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jicofo/src/main/java/org/jitsi/jicofo/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public static void main(String[] args)
Thread.setDefaultUncaughtExceptionHandler((t, e) ->
logger.error("An uncaught exception occurred in thread=" + t, e));

if (System.getProperty("config.file", "").isEmpty())
{
logger.warn("Required property config.file is missing. Set with -Dconfig.file=");
return;
}
setupMetaconfigLogger();
JitsiConfig.Companion.reloadNewConfig();

Expand Down

0 comments on commit c88a392

Please sign in to comment.