소스 검색

style: implement Problem

Benton Edmondson 1 년 전
부모
커밋
352d31898a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      style/style.go

+ 4 - 0
style/style.go

@@ -44,6 +44,10 @@ func Color(text string) string {
 	return foreground(text, 164, 245, 155)
 }
 
+func Problem(text error) string {
+	return foreground(text.Error(), 156, 53, 53)
+}
+
 func Link(text string) string {
 	return Underline(Color(text))
 }