This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9874 for ps


Ignore:
Timestamp:
07/18/11 16:57:41 (13 years ago)
Author:
philip
Message:

Report XML parse errors better in validator tool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/tools/entity/Entity.pm

    r9010 r9874  
    3232sub load_xml
    3333{
    34     my ($file) = @_;
     34    my ($vfspath, $file) = @_;
    3535    my $root = {};
    3636    my @stack = ($root);
     
    5656        },
    5757    });
    58     $p->parse($file);
    59 
     58    eval {
     59        $p->parse($file);
     60    };
     61    if ($@) {
     62        die "Error parsing $vfspath: $@";
     63    }
    6064    return $root;
    6165}
     
    96100{
    97101    my ($vfspath) = @_;
    98     my $layer = load_xml(get_file($vfspath));
     102    my $layer = load_xml($vfspath, get_file($vfspath));
    99103
    100104    if ($layer->{Entity}{'@parent'}) {
Note: See TracChangeset for help on using the changeset viewer.