Skip to content

Commit

Permalink
Avoid (null) as explanation
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Feb 24, 2025
1 parent 9857a18 commit ab80387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ static void invalid_enum_item(const char *envvar, struct conf_item *conf_item, s
char *escaped_value = escape_json(envvar);

// Calculate the size of the error message
asprintf(&item->error, "= %s is %s, allowed options are: %s",
escaped_value, item->error, allowed_values);
asprintf(&item->error, "= %s is invalid, allowed options are: %s",
escaped_value, allowed_values);

free(escaped_value);
free(allowed_values);
Expand Down

0 comments on commit ab80387

Please sign in to comment.