Skip to content

Commit

Permalink
Update log formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jodyheavener committed Mar 27, 2024
1 parent 2f83f46 commit ec435f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion script/approver.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"errors"
"fmt"
"log"
"path/filepath"
Expand All @@ -25,7 +26,7 @@ func (a *Approver) Approve() {
}

if *a.gitHub.Issue.State == "closed" {
a.printErrorAndExit(fmt.Errorf("script run on closed issue"))
a.printErrorAndExit(errors.New("script run on closed issue"))
}

if !a.gitHub.IssueHasLabel(LabelStatusApproved) {
Expand Down
2 changes: 1 addition & 1 deletion script/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func printUsageAndExit() {
log.Fatalf("Usage: ./processor <review|approve> [--test-issue <issue name>]")
log.Fatal("Usage: ./processor <review|approve> [--test-issue <issue name>]")
}

func getEnv(key string) (string, error) {
Expand Down

0 comments on commit ec435f7

Please sign in to comment.