From 47f9dfd8dedca4d812a91367ba1d44236061ba33 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Tue, 11 Nov 2014 16:16:15 -0500 Subject: [PATCH] verbose error shit --- game.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/game.go b/game.go index afc7f6d..e88564a 100644 --- a/game.go +++ b/game.go @@ -46,7 +46,10 @@ func (g *Game) Create() error { values (?, ?) ;`, g.id.String(), g.start) - return err + if err != nil { + return fmt.Errorf("error writing sqlite insert statement to create game: %v") + } + return nil } func (g *Game) Store() error {