Skip to content

Commit

Permalink
move errors to own subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Sep 26, 2024
1 parent 43d18f4 commit f71e977
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"ContentNotFoundError": {
"code": 32099,
"code": -32099,
"message": "content not found"
}
}
6 changes: 3 additions & 3 deletions jsonrpc/src/methods/beacon.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@
"result": {
"$ref": "#/components/contentDescriptors/LocalContentResult"
},
"errors":{
"$ref": "#/components/contentDescriptors/ContentNotFoundError"
}
"errors":[{
"$ref": "#/components/errors/ContentNotFoundError"
}]
},
{
"name": "portal_beaconGossip",
Expand Down
6 changes: 3 additions & 3 deletions jsonrpc/src/methods/history.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@
"result": {
"$ref": "#/components/contentDescriptors/LocalContentResult"
},
"errors":{
"$ref": "#/components/contentDescriptors/ContentNotFoundError"
}
"errors":[{
"$ref": "#/components/errors/ContentNotFoundError"
}]
},
{
"name": "portal_historyGossip",
Expand Down
6 changes: 3 additions & 3 deletions jsonrpc/src/methods/state.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@
"result": {
"$ref": "#/components/contentDescriptors/LocalContentResult"
},
"errors":{
"$ref": "#/components/contentDescriptors/ContentNotFoundError"
}
"errors":[{
"$ref": "#/components/errors/ContentNotFoundError"
}]
},
{
"name": "portal_stateGossip",
Expand Down

0 comments on commit f71e977

Please sign in to comment.