package errors
import "github.com/pkg/errors"
const errorPrefix = "cli_error"
type CliError struct {
err error
}
func NewCliError(err error) *CliError {
return &CliError{err}
}
func (ce *CliError) Error() string {
return errors.Wrap(ce.err, errorPrefix).Error()
}
 |
The pages are generated with Golds v0.3.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |