summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/tcpip.go
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2021-01-26 13:01:26 -0800
committergVisor bot <gvisor-bot@google.com>2021-01-26 13:03:40 -0800
commitce39f82985b95972c545c941be2133b607b4440c (patch)
tree01e450ef81e9b3148161b9241e6b6f2c27893f2d /pkg/tcpip/tcpip.go
parenta90661654d14e77b6442c4a34ced900e2cd9953e (diff)
Implement error on pointers
This improves type-assertion safety. PiperOrigin-RevId: 353931228
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r--pkg/tcpip/tcpip.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go
index 4e2c4f906..812ee36ed 100644
--- a/pkg/tcpip/tcpip.go
+++ b/pkg/tcpip/tcpip.go
@@ -195,7 +195,7 @@ type ErrSaveRejection struct {
}
// Error returns a sensible description of the save rejection error.
-func (e ErrSaveRejection) Error() string {
+func (e *ErrSaveRejection) Error() string {
return "save rejected due to unsupported networking state: " + e.Err.Error()
}