Skip to content

Commit

Permalink
handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Oct 27, 2024
1 parent 87a067b commit 90e546d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/emu/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ var killCommand = cli.Command{
return fmt.Errorf("avd '%s' is not running", avdName)
}

syscall.Kill(avd.Pid, syscall.SIGKILL)
err := syscall.Kill(avd.Pid, syscall.SIGKILL)
if err != nil {
return fmt.Errorf("failed to kill avd %#v: %v", avdName, err)
}
return nil
}
}
Expand Down

0 comments on commit 90e546d

Please sign in to comment.