Skip to content

Commit

Permalink
throwing error on attempt to init module for a dynamic domains host_t…
Browse files Browse the repository at this point in the history
…ype if module doesn't explicitly declare support for this feature
  • Loading branch information
DenysGonchar committed Jun 21, 2021
1 parent c89c6c9 commit 12e31a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gen_mod.erl
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,7 @@ check_dynamic_domains_support(HostType, Module) ->
case gen_mod:does_module_support(Module, dynamic_domains) of
true -> ok;
false ->
ErrorMsg = io_lib:format("dynamic_domains_feature_is_not_supported: ~p ~p", [Module, HostType]),
error_logger:error_msg(lists:flatten(ErrorMsg)),
ok
error({Module, HostType, dynamic_domains_feature_is_not_supported})
end
end.

Expand Down

0 comments on commit 12e31a5

Please sign in to comment.