Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DBIx-Class-Migration CPAN distribution.

Report information
The Basics
Id: 76959
Status: resolved
Priority: 0/
Queue: DBIx-Class-Migration

People
Owner: Nobody in particular
Requestors: frankschwach [...] yahoo.de
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.022
Fixed in: (no value)



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
I created a custom type for the next release with an error message like: message { "$_ is not the name of a loadable schema class. You probably have a typo, or some problem with \@INC" } Let me know if that helps!
Subject: Re: [rt.cpan.org #76959] cryptic error message from dbic-migration
Date: Thu, 02 Aug 2012 22:17:37 +0100
To: bug-DBIx-Class-Migration [...] rt.cpan.org
From: Frank Schwach <frankschwach [...] yahoo.de>
On 02/08/12 20:23, John Napiorkowski via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=76959> > > I created a custom type for the next release with an error message like: > > message { "$_ is not the name of a loadable schema class. You probably have a typo, or some > problem with \@INC" } > > Let me know if that helps! >
Yes, I think that's great - thanks for all your help and hard work!
Thanks! Closing the ticket.