codegangsta / gin

Live reload utility for Go web servers
MIT License
4.23k stars 317 forks source link

command.ProcessState could be nil #171

Open fiurthorn opened 2 years ago

fiurthorn commented 2 years ago

During a build error found on Linux, command.ProcessState can be nil

// if command.ProcessState.Success() {
if command.ProcessState != nil && command.ProcessState.Success() {
    b.errors = ""
} else {
    b.errors = string(output)
}