Subject: | cryptic error message from dbic-migration |
DBIx::Class::Migration::Script uses
MooseX::Types::LoadableClass
for the --schema_class attribute. If a schema class has erros that
prevent it from loading, the generated error emssage is rather cryptic:
$ dbic-migration --schema_class My::Broken::Class
Attribute (schema_class) does not pass the type constraint because:
Validation failed for 'MooseX::Types::LoadableClass::LoadableClass' with
value undef at constructor DBIx::Class::Migration::new
Sort of gives a clue as to what the problem is but it's not very clear.
Maybe it would be better to subtype LoadableClass here and provide a
more informative error message?
Cheers,
Frank