Skip to content

Commit 5e2554c

Browse files
authored
Merge pull request #2699 from IntersectMBO/fix/2676-non-exhaustive-patterns-in-case-while-handling-drep-info-request-on-the-backend
fix(#2676): handle unexpected drep-info query result
2 parents 53c151c + e32cce3 commit 5e2554c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ changes.
1414

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

1819
### Fixed
1920

govtool/backend/src/VVA/DRep.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,4 @@ getDRepInfo drepId = withPool $ \conn -> do
199199
, dRepInfoImageHash = imageHash
200200
}
201201
[] -> return $ DRepInfo False False False False False Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing
202+
_ -> error "Unexpected result from database query in getDRepInfo"

0 commit comments

Comments
 (0)