[server] catch generic error in server for invalid conf (#3687)

A change in the API of Xml-light makes it difficult to handle the
correct error for invalid configuration and keep compatibility with old
ubuntu versions. This way, it is at catch as a generic exception and
provide some information about the issue, most likely a File_not_found
error.
This commit is contained in:
Gautier Hattenberger
2026-09-29 17:34:28 +02:00
committed by GitHub
parent 0857b3121c
commit 69ccc3ef97
+1
View File
@@ -106,6 +106,7 @@ let expand_aicraft x =
| Module.Module_not_found m -> handle_error_message "Module not found" m
| Dtd.Prove_error err -> handle_error_message "Dtd error" (Dtd.prove_error err)
| Not_found -> handle_error_message "Not found" "sorry, something went wrong somewhere"
| _ as e -> handle_error_message "Error" (Printexc.to_string e)
let make_element = fun t a c -> Xml.Element (t,a,c)