fix(notifications): failed image upload should not stop notification

closes #6638
This commit is contained in:
bergquist 2016-11-21 09:45:13 +01:00
parent 6fa4b8c0b6
commit 2b6013ce81

View File

@ -55,10 +55,8 @@ func (n *RootNotifier) Notify(context *EvalContext) error {
return nil
}
err = n.uploadImage(context)
if err != nil {
n.log.Error("Failed to upload alert panel image", "error", err)
return err
if err = n.uploadImage(context); err != nil {
n.log.Error("Failed to upload alert panel image.", "error", err)
}
return n.sendNotifications(context, notifiers)