error message from dump_to_template.pl
Closed this issue · 1 comments
midori@pin:~$ dump_to_template.pl -t ~tfrayner/beerfestdb/util/templates/stillage_planning.tt2 -o cask_management > unfiltered_cask_list.tex
Attribute (filters) does not pass the type constraint because: Validation failed for 'ArrayRef' with value { } at /usr/lib/x86_64-linux-gnu/perl5/5.20/Moose/Util.pm line 49
Moose::Util::throw_exception('ValidationFailedForTypeConstraint', 'type', 'Moose::Meta::TypeConstraint::Parameterizable=HASH(0x27683d0)', 'value', 'HASH(0xc680a0)', 'attribute', 'Moose::Meta::Attribute=HASH(0x5e913e8)') called at /usr/lib/x86_64-linux-gnu/perl5/5.20/Moose/Meta/Attribute.pm line 1265
Moose::Meta::Attribute::verify_against_type_constraint('Moose::Meta::Attribute=HASH(0x5e913e8)', 'HASH(0xc680a0)', 'instance', 'BeerFestDB::Dumper::Template=HASH(0x5eafd28)') called at /usr/lib/x86_64-linux-gnu/perl5/5.20/Moose/Meta/Attribute.pm line 1252
Moose::Meta::Attribute::_coerce_and_verify('Moose::Meta::Attribute=HASH(0x5e913e8)', 'HASH(0xc680a0)', 'BeerFestDB::Dumper::Template=HASH(0x5eafd28)') called at /usr/lib/x86_64-linux-gnu/perl5/5.20/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot('Moose::Meta::Attribute=HASH(0x5e913e8)', 'Moose::Meta::Instance=HASH(0x5e9b258)', 'BeerFestDB::Dumper::Template=HASH(0x5eafd28)', 'HASH(0xdb22e8)') called at /usr/lib/x86_64-linux-gnu/perl5/5.20/Class/MOP/Class.pm line 524
Class::MOP::Class::_construct_instance('Moose::Meta::Class=HASH(0x2982128)', 'HASH(0xdb22e8)') called at /usr/lib/x86_64-linux-gnu/perl5/5.20/Class/MOP/Class.pm line 494
Class::MOP::Class::new_object('Moose::Meta::Class=HASH(0x2982128)', 'HASH(0xdb22e8)') called at /usr/lib/x86_64-linux-gnu/perl5/5.20/Moose/Meta/Class.pm line 274
Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x2982128)', 'HASH(0xdb22e8)') called at /usr/lib/x86_64-linux-gnu/perl5/5.20/Moose/Object.pm line 23
Moose::Object::new('BeerFestDB::Dumper::Template', 'database', 'BeerFestDB::ORM=HASH(0xc84c70)', 'template', '/home/tfrayner/beerfestdb/util/templates/stillage_planning.tt2', 'logos', 'ARRAY(0xc84da8)', 'dump_class', 'cask_management', 'split_output', undef, 'output_dir', '/home/midori', 'overwrite', undef, 'filters', 'HASH(0xc680a0)') called at /home/tfrayner/beerfestdb/util/dump_to_template.pl line 88
seems to work fine with filtering:
midori@pin: $ dump_to_template.pl -t /home/tfrayner/beerfestdb/util/templates/stillage_planning.tt2 -o cask_management --filters "cask_size_name=30L KeyKeg,cask_size_name=20L KeyKeg,brewery=Adnams,brewery=Grain,brewery=Bexar County,brewery=Three Blind Mice,brewery=Woodforde's" > filtered_cask_list.tex
midori@pin: $ ls filt*
filtered_cask_list.tex
... which looks like a .tex file, and has not got any Adnams listed