From fb0f5530f100e8ae3b8561fe5dcfd19edc181b15 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Thu, 13 Sep 2018 12:43:47 +0200 Subject: catch a lot of error not being checked --- bug/clocks.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'bug') diff --git a/bug/clocks.go b/bug/clocks.go index 5ffa094a..47cd1509 100644 --- a/bug/clocks.go +++ b/bug/clocks.go @@ -12,8 +12,15 @@ func Witnesser(repo *repository.GitRepo) error { return b.Err } - repo.CreateWitness(b.Bug.createTime) - repo.EditWitness(b.Bug.editTime) + err := repo.CreateWitness(b.Bug.createTime) + if err != nil { + return err + } + + err = repo.EditWitness(b.Bug.editTime) + if err != nil { + return err + } } return nil -- cgit