Skip to content

Commit 9e58d46

Browse files
committed
another fix for 'error during bootstrap' printing
1 parent b1fbe7f commit 9e58d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jlapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ static int exec_program(char *program)
506506
int shown_err = 0;
507507
jl_printf(JL_STDERR, "error during bootstrap:\n");
508508
jl_value_t *exc = jl_current_exception();
509-
jl_value_t *showf = jl_get_function(jl_base_module, "show");
509+
jl_value_t *showf = jl_base_module ? jl_get_function(jl_base_module, "show") : NULL;
510510
if (showf) {
511511
jl_value_t *errs = jl_stderr_obj();
512512
if (errs) {

0 commit comments

Comments
 (0)