It seems that setting form_error_message on a form that has no other
errors will not have any effect. Is this the intended behavior, and
if so does anyone else think it doesn't make sense? :) In
particular, I was trying to use form_error_message as a kind of
'error-handler of last resort', by doing this in a Catalyst app:
if ( $form->submitted_and_valid ) {
my $user = $c->model( 'DB::User' )->new( {} );
eval { $user->populate_from_formfu( $form ) };
if ( $@ ) {
$c->log->error( $@ );
$form->form_error_message( "FATAL ERROR: $@" );
} else {
$c->post_redirect( '/thank_you' );
}
}
Does it seem like this should work, or does anyone have a suggestion
for a better way to handle this?
--
Jason Kohles
[EMAIL PROTECTED]
http://www.jasonkohles.com/
"A witty saying proves nothing." -- Voltaire
_______________________________________________
Html-widget mailing list
Html-widget@lists.rawmode.org
http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget