Skip to content

Commit

Permalink
use Fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
saw-jan committed Sep 18, 2023
1 parent 6084ab6 commit f67c6f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/ociswrapper/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ func Println(message string) {
func Panic(err error) {
log.Panic("[ociswrapper] ", err.Error())
}

func Fatalln(err error) {
log.Fatalln("[ociswrapper] ", err.Error())
}
2 changes: 1 addition & 1 deletion tests/ociswrapper/ocis/ocis.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func Start(envMap map[string]any) {
func Stop() {
err := cmd.Process.Kill()
if err != nil {
log.Println(err.Error())
log.Fatalln(err)
}
cmd.Wait()
}
Expand Down

0 comments on commit f67c6f9

Please sign in to comment.