mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
fix(push): fix tests
This commit is contained in:
@ -89,10 +89,14 @@ type ProcessorError struct {
|
||||
}
|
||||
|
||||
func (e *ProcessorError) Error() string {
|
||||
if e.Err != nil {
|
||||
return fmt.Sprintf("%s %s failed for '%s': %s (%v)", e.ProcessorType, e.Operation, e.PushNotificationName, e.Reason, e.Err)
|
||||
notifInfo := ""
|
||||
if e.PushNotificationName != "" {
|
||||
notifInfo = fmt.Sprintf(" for '%s'", e.PushNotificationName)
|
||||
}
|
||||
return fmt.Sprintf("%s %s failed for '%s': %s", e.ProcessorType, e.Operation, e.PushNotificationName, e.Reason)
|
||||
if e.Err != nil {
|
||||
return fmt.Sprintf("%s %s failed%s: %s (%v)", e.ProcessorType, e.Operation, notifInfo, e.Reason, e.Err)
|
||||
}
|
||||
return fmt.Sprintf("%s %s failed%s: %s", e.ProcessorType, e.Operation, notifInfo, e.Reason)
|
||||
}
|
||||
|
||||
func (e *ProcessorError) Unwrap() error {
|
||||
|
Reference in New Issue
Block a user