Skip to content

Commit

Permalink
Merge pull request #2699 from IntersectMBO/fix/2676-non-exhaustive-pa…
Browse files Browse the repository at this point in the history
…tterns-in-case-while-handling-drep-info-request-on-the-backend

fix(#2676): handle unexpected drep-info query result
  • Loading branch information
MSzalowski authored Jan 23, 2025
2 parents 53c151c + e32cce3 commit 5e2554c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ changes.

- Add share DRep button to every DRep instead of only our own [Issue 2686](https://github.com/IntersectMBO/govtool/issues/2686)
- Show metadata anchor in Governance Action Details [Issue 2178](https://github.com/IntersectMBO/govtool/issues/2178)
- Handle unexpected drep info query result [Issue 2676](https://github.com/IntersectMBO/govtool/issues/2676)

### Fixed

Expand Down
1 change: 1 addition & 0 deletions govtool/backend/src/VVA/DRep.hs
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,4 @@ getDRepInfo drepId = withPool $ \conn -> do
, dRepInfoImageHash = imageHash
}
[] -> return $ DRepInfo False False False False False Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing
_ -> error "Unexpected result from database query in getDRepInfo"

0 comments on commit 5e2554c

Please sign in to comment.