Merge pull request #354 from iamqizhao/master

rename Desc to ErrorDesc
This commit is contained in:
Qi Zhao
2015-09-22 17:07:29 -07:00

View File

@ -217,9 +217,9 @@ func Code(err error) codes.Code {
return codes.Unknown return codes.Unknown
} }
// Desc returns the error description of err if it was produced by the rpc system. // ErrorDesc returns the error description of err if it was produced by the rpc system.
// Otherwise, it returns err.Error() or empty string when err is nil. // Otherwise, it returns err.Error() or empty string when err is nil.
func Desc(err error) string { func ErrorDesc(err error) string {
if err == nil { if err == nil {
return "" return ""
} }