[release-11.2.8] Chore: Bump Go version to 1.23.7 (#101294)
* Chore: Bump Go version to 1.23.7 * Chore: Bump golangci-lint version to match Go version * Chore: Run yarn prettier:write * Chore: Bump godeltaprof to v0.1.8 to fix start-up * Chore: Fix wire updated error fixture * Chore: Fix OpenAPI spec diffs * Chore: Fix new linting errors from Go upgrade
This commit is contained in:
@@ -2,6 +2,7 @@ package query
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"runtime"
|
||||
@@ -125,7 +126,7 @@ func (s *ServiceImpl) executeConcurrentQueries(ctx context.Context, user identit
|
||||
if theErr, ok := r.(error); ok {
|
||||
err = theErr
|
||||
} else if theErrString, ok := r.(string); ok {
|
||||
err = fmt.Errorf(theErrString)
|
||||
err = errors.New(theErrString)
|
||||
} else {
|
||||
err = fmt.Errorf("unexpected error - %s", s.cfg.UserFacingDefaultError)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user