This commit is contained in:
parent
270f56cdd6
commit
5e2f5a3a3e
2 changed files with 6 additions and 2 deletions
|
|
@ -121,7 +121,11 @@ module Currency = struct
|
|||
(Fmt.str
|
||||
"section `[currency-%s]` not found, currency `%s` is not defined"
|
||||
Exchange.currency Exchange.currency)
|
||||
| Some v -> v
|
||||
| Some v -> (
|
||||
match v.enabled = `YES with
|
||||
| false ->
|
||||
fail_with (Fmt.str "currency `%s` is not enabled" Exchange.currency)
|
||||
| true -> v)
|
||||
end
|
||||
|
||||
module Coin = struct
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue