air-verse / air

☁️ Live reload for Go apps
GNU General Public License v3.0
18.29k stars 815 forks source link

Errors from start command are discarded causing panics or misleading output #675

Open istyf opened 2 weeks ago

istyf commented 2 weeks ago

When runBin calls startCmd to start the newly built application, it discards any returned error and proceeds.

On linux this renders misleading output that the process was started even though it wasn't, but on unix/mac and windows the returned cmd is nil (it probably should be on linux as well) causing a panic when air tries to dereference its pid.