diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-13 12:43:47 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-13 12:43:47 +0200 |
commit | fb0f5530f100e8ae3b8561fe5dcfd19edc181b15 (patch) | |
tree | 1e7a3d63d4d02e4dab56a0ee58aae5317401e706 /termui/input_popup.go | |
parent | f569e6aacc0690e7b1bebf33a10a8e0d154937df (diff) | |
download | git-bug-fb0f5530f100e8ae3b8561fe5dcfd19edc181b15.tar.gz |
catch a lot of error not being checked
Diffstat (limited to 'termui/input_popup.go')
-rw-r--r-- | termui/input_popup.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/termui/input_popup.go b/termui/input_popup.go index c8299d2a..db0ec619 100644 --- a/termui/input_popup.go +++ b/termui/input_popup.go @@ -55,7 +55,10 @@ func (ip *inputPopup) layout(g *gocui.Gui) error { v.Frame = true v.Title = ip.title v.Editable = true - v.Write([]byte(ip.preload)) + _, err = v.Write([]byte(ip.preload)) + if err != nil { + return err + } } if _, err := g.SetCurrentView(inputPopupView); err != nil { |