mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-03 13:00:37 +08:00
commands: Simplified Error string output
This commit is contained in:

committed by
Juan Batiz-Benet

parent
3cebd2176e
commit
e8b37acda3
@ -26,7 +26,7 @@ type Error struct {
|
||||
}
|
||||
|
||||
func (e Error) Error() string {
|
||||
return fmt.Sprintf("%d error: %s", e.Code, e.Message)
|
||||
return e.Message
|
||||
}
|
||||
|
||||
// EncodingType defines a supported encoding
|
||||
|
Reference in New Issue
Block a user