mirror of
https://github.com/yusing/godoxy.git
synced 2025-07-04 22:14:24 +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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if subject == "" {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
//nolint:errorlint
|
//nolint:errorlint
|
||||||
switch err := err.(type) {
|
switch err := err.(type) {
|
||||||
case *withSubject:
|
case *withSubject:
|
||||||
|
|
Loading…
Add table
Reference in a new issue