fix (events): convert multierror to stdlib error (#3743)
* fix (events): convert multierror to stdlib error multierror errors will be converted to a stdlib error (because multierror doesn't support json marshaling). * refact (errors): convert from multierror to stdlib errors.Join(...) * refact: convert from pkg/errors to stdlib error wrapping
This commit is contained in:
28 files changed
+142
-152
No files matched your search
@@ -309,13 +309,14 @@ func (w *Worker) stopServersAndListeners() error {
|
||||
mg.Go(w.stopClusterGrpcServer)
|
||||
|
||||
stopErrors := mg.Wait()
|
||||
convertedStopErrors := stopErrors.ErrorOrNil()
|
||||
|
||||
err := w.stopAnyListeners()
|
||||
if err != nil {
|
||||
stopErrors = multierror.Append(stopErrors, err)
|
||||
convertedStopErrors = stderrors.Join(convertedStopErrors, err)
|
||||
}
|
||||
|
||||
return stopErrors.ErrorOrNil()
|
||||
return convertedStopErrors
|
||||
}
|
||||
|
||||
func (w *Worker) stopHttpServer() error {
|
||||
|
||||
Reference in new issue
Block a user