Used go-gh table printer for listing caches (#25)

* Used go-gh table printer for listing caches

* lint

* lint

* minor

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup
This commit is contained in:
Deepak Dahiya
2022-08-11 14:15:02 +05:30
committed by GitHub
parent c196049591
commit b8890ddb4c
5 changed files with 43 additions and 76 deletions

View File

@@ -1,9 +1,5 @@
package types
import (
"fmt"
)
type HandledError struct {
Message string
InnerError error
@@ -11,5 +7,5 @@ type HandledError struct {
// Allow HandledError to satisfy error interface.
func (err HandledError) Error() string {
return fmt.Sprintf(err.Message)
return err.Message
}