From 20a5fa751aa613b3244c9158581bcc85f049dc5c Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Thu, 5 Oct 2023 17:14:12 +0200 Subject: [PATCH] Use a simple error when reporting sysimg load failures. (#51598) `jl_errorexception_type` is undefined at the point we (fail to) load a sysimg. --- src/processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processor.cpp b/src/processor.cpp index f9c8648866318..bfb67c7f3d400 100644 --- a/src/processor.cpp +++ b/src/processor.cpp @@ -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();