diff options
Diffstat (limited to '')
-rw-r--r-- | src/c_utils.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |