Skip to content

Commit 2abec68

Browse files
committed
rabbit_feature_flags: Report feature flags init error reason
[Why] `failed_to_initialize_feature_flags_registry` was a little too vague.
1 parent ea89960 commit 2abec68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/rabbit/src/rabbit_prelaunch_feature_flags.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ setup(#{feature_flags_file := FFFile}) ->
3737
"Failed to initialize feature flags registry: ~tp",
3838
[Reason],
3939
#{domain => ?RMQLOG_DOMAIN_PRELAUNCH}),
40-
throw({error, failed_to_initialize_feature_flags_registry})
40+
throw({error,
41+
{failed_to_initialize_feature_flags_registry,
42+
Reason}})
4143
end;
4244
{error, Reason} ->
4345
?LOG_ERROR(

0 commit comments

Comments
 (0)