Lose information from exception backtrace
After commit 3a59ea05, some information about the exception trace is lost. For instance, instead of
ACGtk> list-terms logic t | parse sem_real Sentence;
acg: internal error, uncaught exception:
UtilsLib.SharedForest.Make(W).No_next_alt
Raised at UtilsLib__SharedForest.Make.swap in file "src/utils/sharedForest.ml", line 304, characters 17-34
Called from UtilsLib__SharedForest.Make.resume in file "src/utils/sharedForest.ml", line 673, characters 6-14
Called from AcgData__Acg_lexicon.Data_Lexicon.get_analysis in file "src/acg-data/acg_lexicon.ml", line 508, characters 14-58
Called from Dune__exe__Functions.resume_to_lazy_list in file "src/scripting/functions.ml", line 16, characters 8-38
Called from Dune__exe__Functions.fun_parse.fun_parse_aux in file "src/scripting/functions.ml", line 74, characters 4-41
Called from Dune__exe__Functions.make_no_env_fun in file "src/scripting/functions.ml" (inlined), line 24, characters 21-30
Called from Dune__exe__Functions.parse in file "src/scripting/functions.ml", line 82, characters 112-137
Called from Dune__exe__Interpreter.interactive in file "src/scripting/interpreter.ml", line 65, characters 36-82
Called from Dune__exe__Acg.interactive.interactive_rec in file "src/scripting/acg.ml", line 63, characters 10-37
Called from Cmdliner_term.app.(fun) in file "cmdliner_term.ml", line 24, characters 19-24
Called from Cmdliner_eval.run_parser in file "cmdliner_eval.ml", line 34, characters 37-44
we get
ACGtk> list-terms logic t | parse sem_real Sentence;
acg: internal error, uncaught exception:
UtilsLib.SharedForest.Make(W).No_next_alt
Raised at UtilsLib__Error.print_error in file "src/utils/error.ml", line 42, characters 9-16
Called from Dune__exe__Interpreter.interactive in file "src/scripting/interpreter.ml", line 72, characters 9-37
Called from Dune__exe__Acg.interactive.interactive_rec in file "src/scripting/acg.ml", line 63, characters 10-37
Called from Cmdliner_term.app.(fun) in file "cmdliner_term.ml", line 24, characters 19-24
Called from Cmdliner_eval.run_parser in file "cmdliner_eval.ml", line 34, characters 37-44
So most of the relevant part is lost.