Permalink
Browse files

Don't say we created something when we didn't

  • Loading branch information...
afresh1 committed Aug 12, 2012
1 parent 6432aa0 commit 098ff22321a969ac98cab3e208475bd158a2a289
Showing with 4 additions and 2 deletions.
  1. +4 −2 rt-ticket-importer
View
@@ -136,8 +136,10 @@ sub _ConvertItem {
# Get rid of the old id to try to create with a new id
delete $item->{id};
$new_id = $T{$type}{import}( $item, @_ );
- $E{$type}{$old_id} = $new_id;
- print "Created $type #$old_id as #$new_id\n";
+ if ($new_id) {
+ $E{$type}{$old_id} = $new_id;
+ print "Created $type #$old_id as #$new_id\n";
+ }
}
unless ( $E{$type}{$old_id} ) {
print STDERR "Failed to create $type $old_id!!!\n";

0 comments on commit 098ff22

Please sign in to comment.