Skip to content

Commit

Permalink
another fix for 'error during bootstrap' printing
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Feb 16, 2021
1 parent b1fbe7f commit 9e58d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jlapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ static int exec_program(char *program)
int shown_err = 0;
jl_printf(JL_STDERR, "error during bootstrap:\n");
jl_value_t *exc = jl_current_exception();
jl_value_t *showf = jl_get_function(jl_base_module, "show");
jl_value_t *showf = jl_base_module ? jl_get_function(jl_base_module, "show") : NULL;
if (showf) {
jl_value_t *errs = jl_stderr_obj();
if (errs) {
Expand Down

0 comments on commit 9e58d46

Please sign in to comment.