mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
fix: error formatting
This commit is contained in:
parent
6a5d324733
commit
e3699b406c
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue