diff options
Diffstat (limited to 'src/pkg/crypto/tls/alert.go')
-rw-r--r-- | src/pkg/crypto/tls/alert.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pkg/crypto/tls/alert.go b/src/pkg/crypto/tls/alert.go index 3b9e0e241..0856311e4 100644 --- a/src/pkg/crypto/tls/alert.go +++ b/src/pkg/crypto/tls/alert.go @@ -71,3 +71,7 @@ func (e alert) String() string { } return "alert(" + strconv.Itoa(int(e)) + ")" } + +func (e alert) Error() string { + return e.String() +} |