We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9b3b7f commit 626a5f4Copy full SHA for 626a5f4
main.go
@@ -126,12 +126,9 @@ var (
126
// duration controls how many intervals will happen
127
duration = 10
128
129
- // escape markdown
+ // asterisk may cause problems parsing markdown, replace it with `•`
130
// affects only markdown users: info, active, head, tail
131
- mdReplacer = strings.NewReplacer("*", "\\*",
132
- "[", "\\[",
133
- "_", "\\_",
134
- "`", "\\`")
+ mdReplacer = strings.NewReplacer("*", "•")
135
)
136
137
// init flags
@@ -247,7 +244,8 @@ func init() {
247
244
var err error
248
245
rtorrent, err = rtapi.NewRtorrent(SCGIURL)
249
246
if err != nil {
250
- fmt.Fprint(os.Stderr, "[ERROR] rTorrent: %s\n", err)
+ fmt.Fprintf(os.Stderr, "[ERROR] rTorrent: %s\n", err)
+ os.Exit(1)
251
}
252
253
0 commit comments