summaryrefslogtreecommitdiff
path: root/src/Conftrack/Source/Trivial.hs
diff options
context:
space:
mode:
authorstuebinm2024-06-06 20:16:09 +0200
committerstuebinm2024-06-06 20:24:15 +0200
commite3cafcd9a1fc8621fdaaf33d1772bdcd8390d2bf (patch)
tree1a8c593c18c4e0477dd8277da6240a4eceecbc00 /src/Conftrack/Source/Trivial.hs
parent4321bb0b5b90c0f92217ccd07a67f17fce44b388 (diff)
add yaml source
Diffstat (limited to '')
-rw-r--r--src/Conftrack/Source/Trivial.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Conftrack/Source/Trivial.hs b/src/Conftrack/Source/Trivial.hs
index bb06e77..ff22ee9 100644
--- a/src/Conftrack/Source/Trivial.hs
+++ b/src/Conftrack/Source/Trivial.hs
@@ -27,7 +27,7 @@ instance ConfigSource Trivial where
type SourceState Trivial = [Key]
fetchValue key (Trivial tree) = do
case M.lookup key tree of
- Nothing -> pure $ Left NotPresent
+ Nothing -> pure $ Left (NotPresent key)
Just val -> do
modify (key :)
pure $ Right (val, "Trivial source with keys "<> T.pack (show (M.keys tree)))