fix: error formatting

This commit is contained in:
yusing 2025-04-10 06:06:44 +08:00
parent 6a5d324733
commit e3699b406c

View file

@ -27,6 +27,10 @@ func PrependSubject(subject string, err error) error {
return nil
}
if subject == "" {
return err
}
//nolint:errorlint
switch err := err.(type) {
case *withSubject: