Skip to content

Commit 7ed2cda

Browse files
authored
feat(api): show error message (#1019)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent 6cb74fb commit 7ed2cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controlplane/internal/service/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func NewStatusService(logingURL, version string, casClient *biz.CASClientUseCase
3737
func (s *StatusService) Statusz(ctx context.Context, r *pb.StatuszRequest) (*pb.StatuszResponse, error) {
3838
if r.Readiness {
3939
if ok, err := s.casClient.IsReady(ctx); err != nil || !ok {
40-
return nil, errors.ServiceUnavailable("CAS_NOT_READY", "Artifact CAS is not reachable")
40+
return nil, errors.ServiceUnavailable("CAS_NOT_READY", err.Error())
4141
}
4242
}
4343
return &pb.StatuszResponse{}, nil

0 commit comments

Comments
 (0)