[ocaml] print more verbose info on xml loading errors#1570
Conversation
|
Very welcomed, I know a 100(student) reasons why ;) And we could add if XMLerror encountered start with something descriptive to make sure it is a user error that can be fixed. "There is an Error in your XYZ.shortname.XML you can fix. Your problem to fix is details are:" |
|
I don't quite follow... is the message printed with this update not descriptive enough? |
| | Some f -> | ||
| try | ||
| let xml = Xml.parse_file f in | ||
| let xml = ExtXml.parse_file f in |
There was a problem hiding this comment.
not sure this one should be changed, it breaks the try ... catch and the popup message
7ff1ccc to
93b81d0
Compare
|
@gautierhattenberger thanks for the corrections, updated... |
93b81d0 to
96de219
Compare
Try to use our own
ExtXml.parse_fileinstead of plainXml.parse_filein most cases to get a better error report if the xml file is invalid.e.g.
instead of only