tests: produce on planets, unload on routes
This commit is contained in:
@@ -200,7 +200,7 @@ func newGenericError(code int, arg ...any) error {
|
||||
e.err = arg[i].(error)
|
||||
i += 1
|
||||
}
|
||||
if len(arg) == i+2 {
|
||||
if len(arg) >= i+2 {
|
||||
e.subject = fmt.Sprintf(asString(arg[i]), arg[i+1:]...)
|
||||
} else if len(arg) == i+1 {
|
||||
e.subject = asString(arg[i])
|
||||
|
||||
Reference in New Issue
Block a user