Skip to content

Commit

Permalink
Fail on unknown random provider
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Dec 9, 2018
1 parent 0b7a18a commit c77ed5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fake.hs
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ eval (FunctionCall "oneOf" args) = oneOfArgs args
eval (FunctionCall "replicate" [num, expr]) = replicate num expr
eval (FunctionCall "object" args) = objectFromArgs args
eval (FunctionCall "fromFile" [fileName]) = fromFile fileName
eval (FunctionCall name _) = pure $ String $ "No random generator for " <> name
eval (FunctionCall name _) = error $ "No random generator for " <> T.unpack name

0 comments on commit c77ed5d

Please sign in to comment.