Redact credentials throughout publication recovery displays
This commit is contained in:
@@ -56,12 +56,12 @@ func (e *PublicationRecoveryError) Error() string {
|
||||
}
|
||||
message := fmt.Sprintf("publication recovery %s", e.Kind)
|
||||
if e.RecordPath != "" {
|
||||
message += fmt.Sprintf(" for %q", e.RecordPath)
|
||||
message += fmt.Sprintf(" for %q", git.DisplayDiagnostic(e.RecordPath))
|
||||
}
|
||||
if e.cause != nil {
|
||||
message += ": " + git.DisplayError(e.cause).Error()
|
||||
}
|
||||
return message
|
||||
return git.DisplayDiagnostic(message)
|
||||
}
|
||||
|
||||
// Unwrap returns the underlying recovery or storage cause.
|
||||
|
||||
Reference in New Issue
Block a user