Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

zoekt: better error messages#45534

Merged
stefanhengl merged 1 commit into
mainfrom
sh/reindex-better-error-messages
Dec 12, 2022
Merged

zoekt: better error messages#45534
stefanhengl merged 1 commit into
mainfrom
sh/reindex-better-error-messages

Conversation

@stefanhengl

@stefanhengl stefanhengl commented Dec 12, 2022

Copy link
Copy Markdown
Member

In case indexserver fails to serve on indexserver.sock, webserver will respond to frontend with a 502 Bad Gateway. Here we make sure to inform the user about the faulty socket connection. We also return the status code and body for all other errors.

Test plan

  • manual testing via API Console

In case indexserver fails to serve on indexserver.sock, webserver will
respond to frontend with a 502 Bad Gateway. Here we make sure to inform
the user about the faulty socket connection.  We also return the status
code and body for all other errors.
@stefanhengl stefanhengl requested a review from a team December 12, 2022 12:57
@cla-bot cla-bot Bot added the cla-signed label Dec 12, 2022
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 158e5c1...ee9af71.

Notify File(s)
@beyang internal/search/zoekt/reindex.go
@camdencheek internal/search/zoekt/reindex.go
@keegancsmith internal/search/zoekt/reindex.go

@keegancsmith keegancsmith left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like this should be done at the zoekt layer, but this works too.

@stefanhengl stefanhengl merged commit 0ad943b into main Dec 12, 2022
@stefanhengl stefanhengl deleted the sh/reindex-better-error-messages branch December 12, 2022 14:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants