fix(ui): 忽略 PrintError 的返回值

This commit is contained in:
unclesam committed 2026-08-18 11:30:49 +08:00
1 parent 16fd83412d
commit 632d822a5a
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ func PrintFooter() {
// PrintError 打印错误信息 // PrintError 打印错误信息
func PrintError(format string, a ...interface{}) { func PrintError(format string, a ...interface{}) {
msg := fmt.Sprintf(format, a...) msg := fmt.Sprintf(format, a...)
fmt.Fprintf(os.Stderr, "%s[ERROR]%s %s\n", colorRed, colorReset, msg) _, _ = fmt.Fprintf(os.Stderr, "%s[ERROR]%s %s\n", colorRed, colorReset, msg)
} }
// PrintSuccess 打印成功信息 // PrintSuccess 打印成功信息