Skip to content

Commit

Permalink
fix: Fail early if no config.file is specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Oct 15, 2024
1 parent eb53e19 commit fb84998
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 fb84998

Please sign in to comment.