Skip to content
Snippets Groups Projects

Error msg to support formatting

Merged Christel Loftus requested to merge error_msg_to_support_formatting into main
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -255,11 +255,13 @@ func ErrorWithMsg(message string, err error) {
}, err)
}
func ErrorMsg(message string) {
func ErrorMsg(format string, a ...interface{}) {
if disableLogging {
return
}
message := SanitiseLogs(fmt.Sprintf(format, a...))
ErrorWithMsg(message, nil)
}
Loading