We need better error messages in the case of invalid XML files
Bug #1123203 reported by
Michele Simionato
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
High
|
Michele Simionato |
Bug Description
Vitor was running a scenario_damage calculator and in the fragility_model file he accidentally wrote
<IML IMT="MMI">7 8 9 10 11</IML>
instead of
<IML IMT="MMI">7 8 9 10 11</IML>
The error message was unhelpful: http://
In general we should use the method assertValid (which returns a good error message) and not validate (which returns a boolean)
in the nrml parsers.
To post a comment you must log in.
Actually the problem was with
<IML IMT="PGA"></IML> Fragility model for Nepal (continuous) </description>
<description>
instead of
<description> Fragility model for Nepal (continuous) </description>
<IML IMT="PGA"></IML>
but the point stands.