update ntfy channel special characters
This commit is contained in:
parent
b6634b7eaa
commit
ee642d5267
2 changed files with 5 additions and 2 deletions
4
ntfy.go
4
ntfy.go
|
|
@ -58,7 +58,7 @@ func SendNotification(message string) error {
|
|||
|
||||
func SendErr(err error) error {
|
||||
fmt.Println(err)
|
||||
topic := fmt.Sprintf("https://ntfy.sh/awl-neuss-%s-err", NotifyChannel)
|
||||
_, err = http.Post(topic, "text/plain", strings.NewReader(err.Error()))
|
||||
topic := "https://ntfy.sh/awl-neuss-err"
|
||||
_, err = http.Post(topic, "text/plain", strings.NewReader(NotifyChannel + "\n" + err.Error()))
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue