Sfoglia il codice sorgente

Added err output for cmd.Run

Toby Chui 3 anni fa
parent
commit
c387729e18
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. BIN
      launcher.exe
  2. 4 1
      main.go

BIN
launcher.exe


+ 4 - 1
main.go

@@ -65,9 +65,12 @@ func main() {
 	//Start the cmd
 	for {
 		startTime := time.Now().Unix()
-		cmd.Run()
+		err := cmd.Run()
 		endTime := time.Now().Unix()
 
+		if err != nil {
+			panic(err)
+		}
 		if norestart {
 			return
 		}