aboutsummaryrefslogtreecommitdiffstats
path: root/termui/input_popup.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-13 12:43:47 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-13 12:43:47 +0200
commitfb0f5530f100e8ae3b8561fe5dcfd19edc181b15 (patch)
tree1e7a3d63d4d02e4dab56a0ee58aae5317401e706 /termui/input_popup.go
parentf569e6aacc0690e7b1bebf33a10a8e0d154937df (diff)
downloadgit-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.go5
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 {