diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-14 22:17:37 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-14 22:17:37 +0200 |
commit | da470993d13ce63087034db9b7e8ffbdf18e87a5 (patch) | |
tree | 7846ad86de6d93c51c54bf3e764a2108baa63612 /commands | |
parent | f8e07748743f7e66ff1adf101a797cb1bedfc140 (diff) | |
download | git-bug-da470993d13ce63087034db9b7e8ffbdf18e87a5.tar.gz |
complete the storage/read process + tests (!)
Diffstat (limited to 'commands')
-rw-r--r-- | commands/new.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/commands/new.go b/commands/new.go index ab237e32..d2e1ed59 100644 --- a/commands/new.go +++ b/commands/new.go @@ -59,9 +59,10 @@ func RunNewBug(repo repository.Repo, args []string) error { createOp := operations.NewCreateOp(author, title, *newMessage) newbug.Append(createOp) - newbug.Commit(repo) - return nil + err = newbug.Commit(repo) + + return err } |