mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-18 23:44:40 +01:00
fixed notification not being sent
This commit is contained in:
@@ -19,6 +19,8 @@ func highlight(subject string) string {
|
||||
|
||||
func PrependSubject(subject string, err error) error {
|
||||
switch err := err.(type) {
|
||||
case nil:
|
||||
return nil
|
||||
case *withSubject:
|
||||
return err.Prepend(subject)
|
||||
case Error:
|
||||
|
||||
Reference in New Issue
Block a user