1
0

Do not die inside handler, just return error

This commit is contained in:
dump_stack() 2018-10-27 07:42:48 +00:00
parent 29c12f18ce
commit 672a8e6735

View File

@ -408,7 +408,7 @@ func exists(path string) bool {
func pewHandler(workPath, kcfgPath string) (err error) { func pewHandler(workPath, kcfgPath string) (err error) {
ka, err := readArtifactConfig(workPath + "/.out-of-tree.toml") ka, err := readArtifactConfig(workPath + "/.out-of-tree.toml")
if err != nil { if err != nil {
log.Fatalln(err) return
} }
if ka.SourcePath == "" { if ka.SourcePath == "" {
@ -417,12 +417,12 @@ func pewHandler(workPath, kcfgPath string) (err error) {
kcfg, err := readKernelConfig(kcfgPath) kcfg, err := readKernelConfig(kcfgPath)
if err != nil { if err != nil {
log.Fatalln(err) return
} }
err = performCI(ka, kcfg) err = performCI(ka, kcfg)
if err != nil { if err != nil {
log.Fatalln(err) return
} }
return return