Skip to content

Commit 3db1ff2

Browse files
committed
modify error model
1 parent 8cd9e20 commit 3db1ff2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/packages/models/error.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ import log "github.com/sirupsen/logrus"
55
// Custom error type so that we can give helpful messages in CLI
66
type Error struct {
77
Err error
8-
DebugMessage string
98
FriendlyMessage string
109
}
1110

1211
func (e *Error) printFriendlyMessage() {
1312
log.Infoln(e.FriendlyMessage)
1413
}
14+
15+
func (e *Error) printDebuError() {
16+
log.Debugln(e.Err)
17+
}

0 commit comments

Comments
 (0)