diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c2e7f24..cbd7d15 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,5 +1,5 @@ name: Go -on: [push] +on: [push, pull_request] jobs: build: diff --git a/src/gossa.go b/src/gossa.go index 4fceb93..db78c8f 100755 --- a/src/gossa.go +++ b/src/gossa.go @@ -57,6 +57,7 @@ func check(e error) { func exitPath(w http.ResponseWriter, s ...interface{}) { if r := recover(); r != nil { log.Println("error", s, r) + w.WriteHeader(500) w.Write([]byte("error")) } else if *verb { log.Println(s...)