File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -565,6 +565,8 @@ struct
565
565
}
566
566
567
567
let validate () =
568
+ let open GobResult.Syntax in
569
+
568
570
let location_locator = Locator. create () in
569
571
let loop_locator = Locator. create () in
570
572
(* TODO: add all CFG nodes, not just live ones from lh, like UnassumeAnalysis *)
@@ -579,9 +581,12 @@ struct
579
581
580
582
let inv_parser = InvariantParser. create FileCfg. file in
581
583
582
- let yaml = match Yaml_unix. of_file (Fpath. v (GobConfig. get_string " witness.yaml.validate" )) with
583
- | Ok yaml -> yaml
584
- | Error (`Msg m ) -> failwith (" Yaml_unix.of_file: " ^ m)
584
+ let * yaml =
585
+ Yaml_unix. of_file (Fpath. v (GobConfig. get_string " witness.yaml.validate" ))
586
+ |> Result. map_error (fun (`Msg m ) ->
587
+ Logs. error " Yaml_unix.of_file: %s" m;
588
+ " witness missing"
589
+ )
585
590
in
586
591
let yaml_entries = yaml |> GobYaml. list |> BatResult. get_ok in
587
592
You can’t perform that action at this time.
0 commit comments