forked from TrueCloudLab/rclone
ncdu: return error instead of log.Fatal in Show
This commit is contained in:
parent
57b9fff904
commit
cc23ad71ce
1 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,6 @@ package ncdu
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"path"
|
"path"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -466,7 +465,7 @@ func NewUI(f fs.Fs) *UI {
|
||||||
func (u *UI) Show() error {
|
func (u *UI) Show() error {
|
||||||
err := termbox.Init()
|
err := termbox.Init()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
return errors.Wrap(err, "termbox init")
|
||||||
}
|
}
|
||||||
defer termbox.Close()
|
defer termbox.Close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue