Redact credentials throughout publication recovery displays

This commit is contained in:
2026-11-02 22:22:31 +00:00
parent 04db23705a
commit 648c87bb8a
7 changed files with 105 additions and 30 deletions

View File

@@ -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.