autoresearch iter 10: keep error identity at the last errorlint sites

RunPushTest flattened channel validation failures with %v, telegram's
fallback path discarded the original send error, and the config loader's
type assertion on viper.ConfigFileNotFoundError would miss a wrapped form
and fatally abort over a merely missing file. errorlint now reports zero.
This commit is contained in:
ryan
2026-08-29 08:29:40 +08:00
parent f7fd980429
commit c4068efd54
3 changed files with 5 additions and 3 deletions
@@ -206,7 +206,7 @@ func RunPushTest(ctx context.Context, cfg pkgpush.Config, target string) error {
return err
}
if err := pusher.ValidateConfig(cfg); err != nil {
return fmt.Errorf("%s: %v", errs.ErrValidationFailed, err)
return fmt.Errorf("%s: %w", errs.ErrValidationFailed, err)
}
ApplySMTPFallbackToPushConfig(ctx, &cfg)