Skip to content

Commit

Permalink
[improve](config) Report config name and value if value is invalid (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
w41ter authored May 18, 2024
1 parent 454f2bb commit 776563d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,12 @@ private static void setFields(Properties props, boolean isLdapConfig) throws Exc
continue;
}

setConfigField(f, confVal);
try {
setConfigField(f, confVal);
} catch (Exception e) {
String msg = String.format("Failed to set config, name: %s, value: %s", f.getName(), confVal);
throw new IllegalArgumentException(msg, e);
}
}
}

Expand Down

0 comments on commit 776563d

Please sign in to comment.