rough imp, unable to debug further recursion

This commit is contained in:
Maidul Islam
2022-11-25 17:51:28 -05:00
parent 094704ccd9
commit 7d289d5180
3 changed files with 209 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package models
import log "github.com/sirupsen/logrus"
// Custom error type so that we can give helpful messages in CLI
type Error struct {
Err error
DebugMessage string
FriendlyMessage string
}
func (e *Error) printFriendlyMessage() {
log.Infoln(e.FriendlyMessage)
}