Skip to content

Commit

Permalink
change error response
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth More authored and Siddharth More committed May 2, 2024
1 parent 93593e5 commit 2b15baf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions disperser/dataapi/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const docTemplate = `{
}
},
"501": {
"description": "error: Service unavailable or checker not initialized",
"description": "error: EigenDA Service checker not initialized",
"schema": {
"$ref": "#/definitions/dataapi.ErrorResponse"
}
Expand Down Expand Up @@ -297,7 +297,7 @@ const docTemplate = `{
}
},
"501": {
"description": "error: Service unavailable or checker not initialized",
"description": "error: EigenDA Service checker not initialized",
"schema": {
"$ref": "#/definitions/dataapi.ErrorResponse"
}
Expand Down Expand Up @@ -341,7 +341,7 @@ const docTemplate = `{
}
},
"501": {
"description": "error: Service unavailable or checker not initialized",
"description": "error: EigenDA Service checker not initialized",
"schema": {
"$ref": "#/definitions/dataapi.ErrorResponse"
}
Expand Down
6 changes: 3 additions & 3 deletions disperser/dataapi/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
}
},
"501": {
"description": "error: Service unavailable or checker not initialized",
"description": "error: EigenDA Service checker not initialized",
"schema": {
"$ref": "#/definitions/dataapi.ErrorResponse"
}
Expand Down Expand Up @@ -293,7 +293,7 @@
}
},
"501": {
"description": "error: Service unavailable or checker not initialized",
"description": "error: EigenDA Service checker not initialized",
"schema": {
"$ref": "#/definitions/dataapi.ErrorResponse"
}
Expand Down Expand Up @@ -337,7 +337,7 @@
}
},
"501": {
"description": "error: Service unavailable or checker not initialized",
"description": "error: EigenDA Service checker not initialized",
"schema": {
"$ref": "#/definitions/dataapi.ErrorResponse"
}
Expand Down
6 changes: 3 additions & 3 deletions disperser/dataapi/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ paths:
schema:
$ref: '#/definitions/dataapi.ErrorResponse'
"501":
description: 'error: Service unavailable or checker not initialized'
description: 'error: EigenDA Service checker not initialized'
schema:
$ref: '#/definitions/dataapi.ErrorResponse'
summary: Get status of EigenDA batcher.
Expand Down Expand Up @@ -426,7 +426,7 @@ paths:
schema:
$ref: '#/definitions/dataapi.ErrorResponse'
"501":
description: 'error: Service unavailable or checker not initialized'
description: 'error: EigenDA Service checker not initialized'
schema:
$ref: '#/definitions/dataapi.ErrorResponse'
summary: Get status of EigenDA churner service.
Expand Down Expand Up @@ -456,7 +456,7 @@ paths:
schema:
$ref: '#/definitions/dataapi.ErrorResponse'
"501":
description: 'error: Service unavailable or checker not initialized'
description: 'error: EigenDA Service checker not initialized'
schema:
$ref: '#/definitions/dataapi.ErrorResponse'
summary: Get status of EigenDA Disperser service.
Expand Down
6 changes: 3 additions & 3 deletions disperser/dataapi/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ func (s *server) OperatorPortCheck(c *gin.Context) {
// @Failure 400 {object} ErrorResponse "error: Bad request"
// @Failure 404 {object} ErrorResponse "error: Not found"
// @Failure 500 {object} ErrorResponse "error: Server error"
// @Failure 501 {object} ErrorResponse "error: Service unavailable or checker not initialized"
// @Failure 501 {object} ErrorResponse "error: EigenDA Service checker not initialized"
// @Router /metrics/disperser-service-availability [get]
func (s *server) FetchDisperserServiceAvailability(c *gin.Context) {

Expand Down Expand Up @@ -784,7 +784,7 @@ func (s *server) FetchDisperserServiceAvailability(c *gin.Context) {
// @Failure 400 {object} ErrorResponse "error: Bad request"
// @Failure 404 {object} ErrorResponse "error: Not found"
// @Failure 500 {object} ErrorResponse "error: Server error"
// @Failure 501 {object} ErrorResponse "error: Service unavailable or checker not initialized"
// @Failure 501 {object} ErrorResponse "error: EigenDA Service checker not initialized"
// @Router /metrics/churner-service-availability [get]
func (s *server) FetchChurnerServiceAvailability(c *gin.Context) {

Expand Down Expand Up @@ -847,7 +847,7 @@ func (s *server) FetchChurnerServiceAvailability(c *gin.Context) {
// @Failure 400 {object} ErrorResponse "error: Bad request"
// @Failure 404 {object} ErrorResponse "error: Not found"
// @Failure 500 {object} ErrorResponse "error: Server error"
// @Failure 501 {object} ErrorResponse "error: Service unavailable or checker not initialized"
// @Failure 501 {object} ErrorResponse "error: EigenDA Service checker not initialized"
// @Router /metrics/batcher-service-availability [get]
func (s *server) FetchBatcherAvailability(c *gin.Context) {

Expand Down

0 comments on commit 2b15baf

Please sign in to comment.