mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-10-02 12:23:17 +08:00
[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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user