Skip to content

Commit 08a6c2d

Browse files
arschlesAaron Schlesinger
authored andcommitted
fix(log.go): remove the Die func
prefer callers to use log.Err(…) and then manually call os.Exit
1 parent 299a2da commit 08a6c2d

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

pkg/log/log.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@ func Msg(format string, v ...interface{}) {
2626
fmt.Fprintf(Stdout, appendNewLine(format), v...)
2727
}
2828

29-
// Die prints an error and then call os.Exit(1).
30-
func Die(format string, v ...interface{}) {
31-
Err(format, v...)
32-
if IsDebugging {
33-
panic(fmt.Sprintf(format, v...))
34-
}
35-
os.Exit(1)
36-
}
37-
3829
// CleanExit prints a message and then exits with 0.
3930
func CleanExit(format string, v ...interface{}) {
4031
Info(format, v...)

0 commit comments

Comments
 (0)