Skip to content

Commit

Permalink
Print backgrace when exception raised in Web_server.generate
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou committed Oct 19, 2023
1 parent e834fbe commit f1c6fb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/web_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ let generate in_filename thn err =
Lwt.finalize (fun () -> thn pool) (fun () -> Datastore.close_db pool)
with e ->
let message = match e with Failure s -> s | _ -> Printexc.to_string e in
let message = message ^ "\n" ^ (Printexc.get_backtrace ()) in
err message

let generate_json in_filename =
Expand Down

0 comments on commit f1c6fb8

Please sign in to comment.