Skip to content

Commit

Permalink
fix mismatched string and int32
Browse files Browse the repository at this point in the history
Signed-off-by: grant <[email protected]>
  • Loading branch information
grantseltzer committed Mar 29, 2019
1 parent 1cc9e43 commit 2996ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/cgo_darwin_stub.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func resolverGetResources(ctx context.Context, hostname string, rtype, class int

size, errCode = res_search(&byteHostname[0], class, rtype, &responseBuffer[0], int32(len(responseBuffer)))
if errCode != 0 {
return nil, errors.New("could not complete domain resolution return code " + errCode)
return nil, errors.New("could not complete domain resolution return code " + string(errCode))
}

var msg dnsmessage.Message
Expand Down

0 comments on commit 2996ef6

Please sign in to comment.