fix: check err2 != nil
but return a nil value error err
#15698
+5
−5
err2 != nil
but return a nil value error err
#15698