rabbit_feature_flags: Report feature flags init error reason

[Why]
`failed_to_initialize_feature_flags_registry` was a little too vague.
This commit is contained in:
Jean-Sébastien Pédron 2024-10-29 17:18:35 +01:00 committed by Michael Klishin
parent 937ca915c9
commit 9802348683
No known key found for this signature in database
GPG Key ID: FF4F6501646A9C9A
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ setup(#{feature_flags_file := FFFile}) ->
"Failed to initialize feature flags registry: ~tp",
[Reason],
#{domain => ?RMQLOG_DOMAIN_PRELAUNCH}),
throw({error, failed_to_initialize_feature_flags_registry})
throw({error,
{failed_to_initialize_feature_flags_registry,
Reason}})
end;
{error, Reason} ->
?LOG_ERROR(