Skip to content

Commit

Permalink
add logging for delete branch (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Jun 12, 2023
1 parent 4fe5aea commit ac0e7ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ var branchCmd = &cobra.Command{
if err := client.Refs.DeleteBranch(client.RootGoitPath, client.Head.Reference, deleteOption); err != nil {
return fmt.Errorf("fail to delete branch: %w", err)
}
if err := gLogger.DeleteBranch(deleteOption); err != nil {
return fmt.Errorf("log error: %w", err)
}
}

return nil
Expand Down

0 comments on commit ac0e7ca

Please sign in to comment.