Commits

Sarah Richardson committed c80d65d

watch for unique names

  • Participants
  • Parent commits 444f47c

Comments (0)

Files changed (1)

File bin/BS_ChromosomeCutter.pl

       my $e2;
       if ($e2 = Bio::BioStudio::Exception::PreserveExsistingFeature->caught())
       {
-        print "Can't insert $insname; would destroy " . $e2->error . "\n";
+        print "Can't insert $insname; " . $e2->error . "\n";
+      }
+      elsif ($e2 = Bio::BioStudio::Exception::PreserveUniqueNames->caught())
+      {
+        print "Can't insert $insname; " . $e2->error . "\n";
       }
       elsif ($newfeat)
       {
       my $e2;
       if ($e2 = Bio::BioStudio::Exception::PreserveExsistingFeature->caught())
       {
-        print "Can't insert $insname; would destroy " . $e2->error . "\n";
+        print "Can't insert $insname; " . $e2->error . "\n";
+      }
+      elsif ($e2 = Bio::BioStudio::Exception::PreserveUniqueNames->caught())
+      {
+        print "Can't insert $insname; " . $e2->error . "\n";
       }
       elsif ($newfeat)
       {
     my $e2;
     if ($e2 = Bio::BioStudio::Exception::PreserveExsistingFeature->caught())
     {
-      print "Can't insert $insname; would destroy " . $e2->error . "\n";
+      print "Can't insert $insname; " . $e2->error . "\n";
+    }
+    elsif ($e2 = Bio::BioStudio::Exception::PreserveUniqueNames->caught())
+    {
+      print "Can't insert $insname; " . $e2->error . "\n";
     }
     elsif ($newfeat)
     {