Skip to content

Commit 20a5fa7

Browse files
authored
Use a simple error when reporting sysimg load failures. (#51598)
`jl_errorexception_type` is undefined at the point we (fail to) load a sysimg.
1 parent 5bdc1b3 commit 20a5fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ static inline jl_image_t parse_sysimg(void *hdl, F &&callback)
642642
JL_GC_PUSH1(&rejection_reason);
643643
uint32_t target_idx = callback(ids, &rejection_reason);
644644
if (target_idx == (uint32_t)-1) {
645-
jl_throw(jl_new_struct(jl_errorexception_type, rejection_reason));
645+
jl_error(jl_string_ptr(rejection_reason));
646646
}
647647
JL_GC_POP();
648648

0 commit comments

Comments
 (0)