mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-25 02:21:05 +01:00
implement middleware compose
This commit is contained in:
@@ -166,6 +166,8 @@ func (ne NestedError) Subject(s any) NestedError {
|
||||
}
|
||||
if ne.subject == "" {
|
||||
ne.subject = subject
|
||||
} else if !strings.ContainsRune(subject, ' ') || strings.ContainsRune(ne.subject, '.') {
|
||||
ne.subject = fmt.Sprintf("%s.%s", subject, ne.subject)
|
||||
} else {
|
||||
ne.subject = fmt.Sprintf("%s > %s", subject, ne.subject)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user