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
4ed9a14d
Commit
4ed9a14d
authored
Aug 26, 2014
by
MARCHE Claude
Browse files
protect some exception catching with not Debug.stack_trace
parent
e76c9a52
Changes
2
Show whitespace changes
Inline
Side-by-side
src/ide/gmain.ml
View file @
4ed9a14d
...
...
@@ -822,7 +822,7 @@ let sched =
session_needs_saving
:=
false
;
current_env_session
:=
Some
env
;
sched
with
e
->
with
e
when
not
(
Debug
.
test_flag
Debug
.
stack_trace
)
->
eprintf
"@[Error while opening session:@ %a@.@]"
Exn_printer
.
exn_printer
e
;
exit
1
...
...
src/session/session.ml
View file @
4ed9a14d
...
...
@@ -1556,7 +1556,8 @@ let read_xml_and_shapes xml_fn compressed_fn =
let
xml
=
Xml
.
from_file
~
fixattrs
:
(
fix_attributes
ch
)
xml_fn
in
xml
,
!
use_shapes
with
e
->
C
.
close_in
ch
;
raise
e
e
when
not
(
Debug
.
test_flag
Debug
.
stack_trace
)
->
C
.
close_in
ch
;
raise
e
end
module
ReadShapesNoCompress
=
ReadShapes
(
Compress
.
Compress_none
)
...
...
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