Commits

Diab Jerius committed b3f072a

add more debug info if we don't get the attachment form

  • Participants
  • Parent commits 964768a

Comments (0)

Files changed (1)

       # select the attachment form by the fields present.  could just
       # use the form name "main", but that seems so generic I'm
       # guessing it'll get changed one day
-      $ua->form_with_fields( qw( filepath createlink hidefile ) )
-	or die( "error accessing Topic: $topic_path\n" );
+      unless ( $ua->form_with_fields( qw( filepath createlink hidefile ) ) ) {
+
+	  debug( $ua->response->message );
+	  die( "error accessing Topic: $topic_path\n" );
+      }
 
       # form fields not related to validation
       my %fields = ( createlink => $config->get_attr( 'link' ),