Skip to content

Commit d14da2f

Browse files
author
Ryan Bak
committed
Fix error handling for keystone errors in queries
Handles the case where there is an error while trying to obtain a keystone token for a proxied query
1 parent 75ffe90 commit d14da2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/api/dataproxy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func ProxyDataSourceRequest(c *middleware.Context) {
104104
token, err := keystone.GetToken(c)
105105
if err != nil {
106106
c.JsonApiErr(500, "Failed to get keystone token", err)
107+
return
107108
}
108109
c.Req.Request.Header["X-Auth-Token"] = []string{token}
109110
}

0 commit comments

Comments
 (0)