Skip to content

Commit

Permalink
Make extension loading failure throw an error during pre-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
topolarity committed Nov 24, 2024
1 parent 0bedaae commit ab49cee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1588,6 +1588,10 @@ function run_extension_callbacks(extid::ExtensionId)
errs = current_exceptions()
@error "Error during loading of extension $(extid.id.name) of $(extid.parentid.name), \
use `Base.retry_load_extensions()` to retry." exception=errs
if JLOptions().incremental != 0
# during incremental precompilation, this should be fail-fast
throw(PrecompilableError())
end
false
finally
global loading_extension = false
Expand Down

0 comments on commit ab49cee

Please sign in to comment.