merge in rt 3.4.6. *gulp*!
[freeside.git] / rt / sbin / rt-setup-database.in
index 06c04dc..741c695 100644 (file)
@@ -563,6 +563,10 @@ sub insert_data {
                 next;
             }
             my ( $return, $msg ) = $new_entry->Create(%$item);
+            unless( $return ) {
+                print "(Error: $msg)\n";
+                next;
+            }
 
             foreach my $value ( @{$values} ) {
                 my ( $eval, $emsg ) = $new_entry->AddValue(%$value);