Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

ncdu: return error instead of log.Fatal in Show

Fabian Möllercc23ad71ce27
diff --git a/cmd/ncdu/ncdu.go b/cmd/ncdu/ncdu.go
index 389c03ed0..8cba6030f 100644
--- a/cmd/ncdu/ncdu.go
+++ b/cmd/ncdu/ncdu.go
@@ -6,7 +6,6 @@ package ncdu
import (
"fmt"
- "log"
"path"
"sort"
"strings"
@@ -466,7 +465,7 @@ func NewUI(f fs.Fs) *UI {
func (u *UI) Show() error {
err := termbox.Init()
if err != nil {
- log.Fatal(err)
+ return errors.Wrap(err, "termbox init")
}
defer termbox.Close()