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 /bug/clocks.go | |
parent | f569e6aacc0690e7b1bebf33a10a8e0d154937df (diff) | |
download | git-bug-fb0f5530f100e8ae3b8561fe5dcfd19edc181b15.tar.gz |
catch a lot of error not being checked
Diffstat (limited to 'bug/clocks.go')
-rw-r--r-- | bug/clocks.go | 11 |
1 files changed, 9 insertions, 2 deletions
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 |