MCPcopy Create free account
hub / github.com/DNAProject/DNA / PrintErrorMsg

Function PrintErrorMsg

cmd/usage.go:434–437  ·  view source on GitHub ↗
(format string, a ...interface{})

Source from the content-addressed store, hash-verified

432}
433
434func PrintErrorMsg(format string, a ...interface{}) {
435 format = fmt.Sprintf("\033[31m[ERROR] %s\033[0m\n", format) //Print error msg with red color
436 fmt.Printf(format, a...)
437}
438
439func PrintWarnMsg(format string, a ...interface{}) {
440 format = fmt.Sprintf("\033[33m[WARN] %s\033[0m\n", format) //Print error msg with yellow color

Callers 15

mainFunction · 0.92
mainFunction · 0.92
importWalletFunction · 0.92
sendTxFunction · 0.85
transferTxFunction · 0.85
approveTxFunction · 0.85
transferFromTxFunction · 0.85
deployContractFunction · 0.85
invokeCodeContractFunction · 0.85
invokeContractFunction · 0.85
exportBlocksFunction · 0.85
cusHelpPrinterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected