Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
05972a08
Commit
05972a08
authored
May 31, 2017
by
Sylvain Dailler
Browse files
Absence of locations in a goal triggers an exception only in debug mode
parent
6416a393
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/session/itp_server.ml
View file @
05972a08
...
...
@@ -504,7 +504,14 @@ exception No_loc_on_goal
let
color_goal
list
loc
=
match
loc
with
|
None
->
raise
No_loc_on_goal
|
None
->
(* This case can happen when after some transformations: for example, in
an assert, the new goal asserted is not tagged with locations *)
(* This error is harmless but we want to detect it when debugging. *)
if
Debug
.
test_flag
Debug
.
stack_trace
then
raise
No_loc_on_goal
else
()
|
Some
loc
->
color_loc
list
~
color
:
Goal_color
~
loc
let
get_locations
list
(
task
:
Task
.
task
)
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment