Skip to content

Commit

Permalink
Fix os.ExitError to *os.ExitError
Browse files Browse the repository at this point in the history
  • Loading branch information
Matir committed Nov 19, 2020
1 parent 42be5ef commit b5d73c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sliver/handlers/generic-rpc-handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ func executeHandler(data []byte, resp RPCResponse) {
//{{end}}
if err != nil {
// Exit errors are not a failure of the RPC, but of the command.
if exiterr, ok := err.(os.ExitError); ok {
if exiterr, ok := err.(*os.ExitError); ok {
execResp.Status = uint32(exiterr.ExitCode())
} else {
execResp.Response = &commonpb.Response{
Expand Down

0 comments on commit b5d73c4

Please sign in to comment.