Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/src/campaigns_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ func printExecutionError(out *output.Output, err error) {
writeErrs([]error{err})
}

out.Write("")
out.WriteLine(output.Line(output.EmojiLightbulb, output.StyleSuggestion, "The troubleshooting documentation can help to narrow down the cause of the errors: https://docs.sourcegraph.com/campaigns/references/troubleshooting"))
}

func flattenErrs(err error) (result []error) {
Expand Down
7 changes: 4 additions & 3 deletions internal/output/emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package output

// Standard emoji for use in output.
const (
EmojiFailure = "❌"
EmojiWarning = "❗️"
EmojiSuccess = "✅"
EmojiFailure = "❌"
EmojiWarning = "❗️"
EmojiSuccess = "✅"
EmojiLightbulb = "💡"
)
11 changes: 6 additions & 5 deletions internal/output/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ type style struct{ code string }
func (s *style) String() string { return s.code }

var (
StyleReset = &style{"\033[0m"}
StyleLogo = Fg256Color(57)
StylePending = Fg256Color(4)
StyleWarning = Fg256Color(124)
StyleSuccess = Fg256Color(2)
StyleReset = &style{"\033[0m"}
StyleLogo = Fg256Color(57)
StylePending = Fg256Color(4)
StyleWarning = Fg256Color(124)
StyleSuccess = Fg256Color(2)
StyleSuggestion = Fg256Color(244)

StyleBold = &style{"\033[1m"}
StyleItalic = &style{"\033[3m"}
Expand Down