cmd/gitserver/server: Handle warning error in handleRepoUpdate
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: indradhanush
Note to reviewers: The diff is easier to see with whitespaces hidden.
In this commit we start handling a potential warning type error that might be returned from underlying functions. To do this we have to make some minor structural changes to this method:
The updated code path to return the custom 555 status code is technically dead code since none of the underlying methods return a warning type error yet. Once implemented, I will add tests in the client to handle this status code –– which is where the new effect of this code change will be truly seen.
Push commits to the source branch or add previously merged commits to review them.