Skip to content

Commit

Permalink
Use a simple error when reporting sysimg load failures. (JuliaLang#51598
Browse files Browse the repository at this point in the history
)

`jl_errorexception_type` is undefined at the point we (fail to) load a
sysimg.
  • Loading branch information
maleadt authored Oct 5, 2023
1 parent 5bdc1b3 commit 20a5fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ static inline jl_image_t parse_sysimg(void *hdl, F &&callback)
JL_GC_PUSH1(&rejection_reason);
uint32_t target_idx = callback(ids, &rejection_reason);
if (target_idx == (uint32_t)-1) {
jl_throw(jl_new_struct(jl_errorexception_type, rejection_reason));
jl_error(jl_string_ptr(rejection_reason));
}
JL_GC_POP();

Expand Down

0 comments on commit 20a5fa7

Please sign in to comment.