Skip to content

Commit

Permalink
Better error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
skalle committed Aug 5, 2020
1 parent 6d8b70e commit 007baef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expect.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ func (e *GExpect) check() bool {
// Only works on Process Expecters.
func (e *GExpect) SendSignal(sig os.Signal) error {
if e.cmd == nil {
return status.Errorf(codes.NotFound, "not a process Expecter")
return status.Errorf(codes.NotImplemented, "only process Expecters supported")
}
return e.cmd.Process.Signal(sig)
}
Expand Down

0 comments on commit 007baef

Please sign in to comment.