Skip to content
Snippets Groups Projects
Commit 1e864817 authored by Valentin Perrelle's avatar Valentin Perrelle
Browse files

Merge branch 'fix/dive' into 'master'

[Dive] Server interface: if Eva has not been computed, emit an error.

See merge request frama-c/frama-c!2777
parents c9a7f3d2 f604eea3
No related branches found
No related tags found
No related merge requests found
...@@ -38,9 +38,16 @@ let get_context = ...@@ -38,9 +38,16 @@ let get_context =
match !context with match !context with
| Some c -> c | Some c -> c
| None -> | None ->
let c = Context.create () in if Db.Value.is_computed () then
context := Some c; let c = Context.create () in
c context := Some c;
c
else
begin
Self.error ~once:true
"A prior Eva analysis is required to build the graphs.";
Server.Data.failure "Eva analysis not computed"
end
let global_window = ref { let global_window = ref {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment