File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -890,13 +890,15 @@ void jl_flush_cstdio(void)
890
890
891
891
jl_value_t * jl_stdout_obj (void )
892
892
{
893
+ if (jl_base_module == NULL ) return NULL ;
893
894
jl_value_t * stdout_obj = jl_get_global (jl_base_module , jl_symbol ("STDOUT" ));
894
895
if (stdout_obj != NULL ) return stdout_obj ;
895
896
return jl_get_global (jl_base_module , jl_symbol ("OUTPUT_STREAM" ));
896
897
}
897
898
898
899
jl_value_t * jl_stderr_obj (void )
899
900
{
901
+ if (jl_base_module == NULL ) return NULL ;
900
902
jl_value_t * stderr_obj = jl_get_global (jl_base_module , jl_symbol ("STDERR" ));
901
903
if (stderr_obj != NULL ) return stderr_obj ;
902
904
return jl_get_global (jl_base_module , jl_symbol ("OUTPUT_STREAM" ));
Original file line number Diff line number Diff line change @@ -543,7 +543,7 @@ DLLEXPORT void jl_atexit_hook()
543
543
}
544
544
JL_CATCH {
545
545
jl_printf (JL_STDERR , "\natexit hook threw an error: " );
546
- jl_show ( jl_stderr_obj (), jl_exception_in_transit );
546
+ jl_static_show ( JL_STDERR , jl_exception_in_transit );
547
547
}
548
548
}
549
549
}
@@ -1060,7 +1060,7 @@ void _julia_init(JL_IMAGE_SEARCH rel)
1060
1060
}
1061
1061
JL_CATCH {
1062
1062
jl_printf (JL_STDERR , "error during init:\n" );
1063
- jl_show ( jl_stderr_obj () , jl_exception_in_transit );
1063
+ jl_static_show ( JL_STDERR , jl_exception_in_transit );
1064
1064
jl_printf (JL_STDERR , "\n" );
1065
1065
jl_exit (1 );
1066
1066
}
You can’t perform that action at this time.
0 commit comments