Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
kikofernandez committed Oct 25, 2024
2 parents 9a43ee1 + 75d1c4e commit 2164367
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 198 deletions.
5 changes: 3 additions & 2 deletions lib/kernel/src/code.erl
Original file line number Diff line number Diff line change
Expand Up @@ -563,9 +563,10 @@ ensure_loaded(Mod) when is_atom(Mod) ->
{Binary,File,Ref} ->
case ensure_prepare_loading(Mod, Binary, File) of
{error,_}=Error ->
call({load_error, Ref, Mod, Error});
call({load_error, Mod, Ref}),
Error;
Prepared ->
call({load_module, Prepared, Mod, File, false, Ref})
call({load_ok, Prepared, Mod, File, Ref})
end
end;
embedded ->
Expand Down
Loading

0 comments on commit 2164367

Please sign in to comment.