Verbose error messages when reading XML config file

Started by math, January 21, 2022, 04:34:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

math

Hi!

We created a Python script that generates FET configuration files. Now we updated the script, but unfortunately FET is no longer able to parse the XML file. This is clearly a problem of our generator script, but FET could be more helpful at this point. All we get from FET is the following error message:

Could not read file - XML parse error at line 1194, column 17:
The activity with id=3 contains incorrect data

Is it possible to add some additional information to this error message? It would help a lot if FET would give a hint which data is considered to be incorrect.

This is no urgent suggestion at all since we will start to analyze our generated XML file right now. This is more of a general suggestion that would be helpful for future scenarios.


Best, Matthias

Liviu Lalescu

Hello,

Thank you for the suggestion! I made it: https://lalescu.ro/liviu/Backup-fet/ (for now; the 6.2.6-snapshot). I hope to release in 1-2 days, but I am waiting for Qt 6.2.3 which is delayed.

math

Hi Liviu!

Wow, that was fast. Thanks a lot for taking care about this so quickly. I just downloaded and compiled the snapshot. The error message on loading faulty configuration files is much better now.

Thanks for your support!
Matthias

Liviu Lalescu

Hello, Matthias,

You are welcome! Thank you as well!