Opened 8 years ago

Last modified 8 years ago

#367 confirmed defect

Make error more useful with invalid XML in multi-file zip

Reported by: ibboard Owned by:
Priority: minor Milestone: WarFoundry API 0.2
Component: WarFoundry-API Version: Unknown or N/A
Keywords: xml validation zip Cc:
Blocked By: Blocking:

Description (last modified by ibboard)

If you have a zip file with multiple XML files in it and one of them contains invalid XML then it isn't entirely clear where the problem is from the exception. For example, when using these data files I initially got:

WARN  [20:11:26]: FrmMainWindow.FileLoadingFinished() - Line: 249 - Failed to load /home/ibboard/Projects/dev/IBBoard.WarFoundry.GUI.GTK/bin/Debug/data/Warpath.system: Problem validating against schema for WarFoundry data: XmlSchema error: Key sequence is missing. XML  Line 57, Position 15.

This was easily locatable, as there were only two files in the zip and one wasn't 57 lines long, but in other situations this might be even more awkward.

Suggested format (if possible) is to put ";subfile-path" at the end, e.g.:

/home/ibboard/Projects/dev/IBBoard.WarFoundry.GUI.GTK/bin/Debug/data/Warpath.system;ForgeFathers.racex: Problem validating...

Change History (2)

comment:1 Changed 8 years ago by ibboard

Status: newconfirmed

comment:2 Changed 8 years ago by ibboard

Description: modified (diff)
Note: See TracTickets for help on using tickets.