// GetErr test and logs the error, and return it for later use. func GetErr(e error, msg string) error { if e != nil { std.Println(color.Red("Error"), msg, ":", e) } return e }
// Err test and log the error as Error type. Return true if an error was found. // func Err(e error, msg string) (fail bool) { return l(e, color.Red("Error"), msg) }