mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-30 22:02:02 +02:00
feat: enhanced error handling module
This commit is contained in:
@@ -15,7 +15,7 @@ type nestedError struct {
|
||||
|
||||
func (err nestedError) Subject(subject string) Error {
|
||||
if err.Err == nil {
|
||||
err.Err = newError(subject)
|
||||
err.Err = PrependSubject(subject, errStr(""))
|
||||
} else {
|
||||
err.Err = PrependSubject(subject, err.Err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user