提交 b65a5bac 作者: Matt Bell

commands: Made Error implement error interface

上级 8786878f
......@@ -24,7 +24,7 @@ type Error struct {
Code ErrorType
}
func (e *Error) Error() string {
func (e Error) Error() string {
return fmt.Sprintf("%d error: %s", e.Code, e.Message)
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论