FET Forum

FET Development => Suggestions => Topic started by: math on January 21, 2022, 04:34:08 PM

Title: Verbose error messages when reading XML config file
Post by: math on January 21, 2022, 04:34:08 PM
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
Title: Re: Verbose error messages when reading XML config file
Post by: Liviu Lalescu on January 21, 2022, 06:35:16 PM
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.
Title: Re: Verbose error messages when reading XML config file
Post by: math on January 22, 2022, 12:16:24 PM
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
Title: Re: Verbose error messages when reading XML config file
Post by: Liviu Lalescu on January 22, 2022, 01:03:35 PM
Hello, Matthias,

You are welcome! Thank you as well!