mirror of
https://github.com/rclone/rclone
synced 2024-12-30 23:46:23 +01:00
ncdu: return error instead of log.Fatal in Show
This commit is contained in:
parent
57b9fff904
commit
cc23ad71ce
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user