File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ module Lookup = struct
160160 | (`A _ | `O _ ) as js -> js
161161 | _ -> js
162162 with Not_found ->
163- if strict then raise Not_found else `Bool false
163+ if strict then raise ( Missing_section key) else `Bool false
164164
165165 let inverted (js : Json.value ) ~key =
166166 match js with
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ exception Invalid_template of string
44
55(* * Raised when a missing variable in a template is not substituted *)
66exception Missing_variable of string
7+ exception Missing_section of string
78
89module Json : sig (* * Compatible with Ezjsonm *)
910 type value =
Original file line number Diff line number Diff line change @@ -36,3 +36,4 @@ and section = {
3636exception Invalid_param of string
3737exception Invalid_template of string
3838exception Missing_variable of string
39+ exception Missing_section of string
You can’t perform that action at this time.
0 commit comments