Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
955afe05
Commit
955afe05
authored
Sep 12, 2011
by
MARCHE Claude
Browse files
do not abort open_session if XML file absent or corrupted
parent
19567142
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ide/session.ml
View file @
955afe05
...
...
@@ -1424,12 +1424,14 @@ let open_session ~allow_obsolete ~env ~config ~init ~notify dir =
load_session
~
env
xml
;
reload_all
allow_obsolete
with
|
Sys_error
msg
->
|
Sys_error
_
msg
->
(* xml does not exist yet *)
(*failwith ("Open session: sys error " ^ msg)*)
false
false
|
Xml
.
Parse_error
s
->
failwith
(
"Open session: XML database corrupted (%s)@."
^
s
)
Format
.
eprintf
"XML database corrupted, ignored (%s)@."
s
;
(* failwith ("Open session: XML database corrupted (%s)@." ^ s) *)
false
end
|
_
->
eprintf
"Session.open_session: session already opened@."
;
...
...
Write
Preview
Supports
Markdown
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