aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/new.go5
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
}