Skip to content

Commit

Permalink
Update src/Container/OsRelease.hs
Browse files Browse the repository at this point in the history
Co-authored-by: Jessica Black <kit@kitified.dev>
  • Loading branch information
meghfossa and jssblck committed Jul 27, 2022
1 parent 9d34231 commit 8b1b97f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Container/OsRelease.hs
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ osReleaseParser = do

case (nameId, versionId) of
(Just name, Just version) -> pure $ OsInfo name version
(Just _, Nothing) -> fail "could not identify os's version"
(Nothing, Just _) -> fail "could not identify os's name"
(Nothing, Nothing) -> fail "could not identify os's name and version"
(Just _, Nothing) -> fail "could not identify os version"
(Nothing, Just _) -> fail "could not identify os name"
(Nothing, Nothing) -> fail "could not identify os name or version"
where
-- >> parseTest propertiesParser "A=B\nC=D" = fromList [(A, B), (C, D)]
-- >> parseTest propertiesParser "A=B\n\nC=D" = fromList [(A, B), (C, D)]
Expand Down

0 comments on commit 8b1b97f

Please sign in to comment.