chore(healthcheck): log one error per line on failure for readability

This commit is contained in:
Quentin McGaw
2025-12-05 17:03:04 +00:00
parent f5206375c0
commit 56db5a83c0
+1 -1
View File
@@ -262,7 +262,7 @@ func withRetries(ctx context.Context, tryTimeouts []time.Duration,
for i, err := range errs {
errStrings[i] = fmt.Sprintf("attempt %d (%dms): %s", i+1, err.durationMS, err.err)
}
return fmt.Errorf("%w: %s", ErrAllCheckTriesFailed, strings.Join(errStrings, ", "))
return fmt.Errorf("%w:\n\t%s", ErrAllCheckTriesFailed, strings.Join(errStrings, "\n\t"))
}
func (c *Checker) startupCheck(ctx context.Context) error {