diff --git a/linux/run.go b/linux/run.go index c9b5876..c11c461 100644 --- a/linux/run.go +++ b/linux/run.go @@ -43,6 +43,7 @@ func (cmd *LinuxCommand) AddHandler(handler interface{}) error { break case func(data EventExitData) error: cmd.handlers[EventExit] = h + break default: return ErrInvalidHandler }