Following commits add %{home} to default settings, which may fail to expand
if home directory isn't set.
ctx->func_contexts,
&error) <= 0 &&
(ctx->flags & SETTINGS_GET_FLAG_FAKE_EXPAND) == 0) {
- i_panic("BUG: Failed to expand default setting %s=%s variables: %s",
+ *error_r = t_strdup_printf(
+ "Failed to expand default setting %s=%s variables: %s",
key, value, error);
return -1;
}
ctx->func_contexts,
&error) <= 0 &&
(ctx->flags & SETTINGS_GET_FLAG_FAKE_EXPAND) == 0) {
- i_panic("BUG: Failed to expand default setting %s=%s variables: %s",
+ *error_r = t_strdup_printf(
+ "Failed to expand default setting %s=%s variables: %s",
key, value, error);
+ return -1;
}
value = str_c(ctx->str);
}