From bf05941247867b6dd1f0532a1159e3b685f561f8 Mon Sep 17 00:00:00 2001 From: joe Date: Fri, 29 Aug 2025 11:22:41 +0200 Subject: fuck good --- src/c_utils.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/c_utils.go') diff --git a/src/c_utils.go b/src/c_utils.go index 76ac248..2333ffd 100644 --- a/src/c_utils.go +++ b/src/c_utils.go @@ -149,6 +149,9 @@ func c_die(str string, err error) { } func c_error_mode(msg string, err error, ui *HardUI) { + if ui == nil { + return + } ui.mode = ERROR_MODE err_str := "" if err != nil { -- cgit v1.2.3