rename Desc to ErrorDesc

This commit is contained in:
iamqizhao
2015-09-22 17:00:48 -07:00
parent 39130707bd
commit 35df01a371

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 ""
} }