]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid an error if a domain has an external translation for which no team
authorBruno Haible <bruno@clisp.org>
Tue, 23 Apr 2002 12:05:35 +0000 (12:05 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:07:53 +0000 (12:07 +0200)
exists.

Admin/Matrix.java

index 5e6f6768acee64d452e29fd175195464af3d8b9d..5f2cde850b64401463fc6ce4a499ed8ade437301 100644 (file)
@@ -139,8 +139,10 @@ public class Matrix {
             if (d < 0)
               throw new Error("didn't find domain \""+po.domain+"\"");
             int t = Arrays.binarySearch(teams,po.team);
-            if (t < 0)
-              throw new Error("didn't find team \""+po.team+"\"");
+            if (t < 0) {
+              System.err.println(po.domain+": didn't find team \""+po.team+"\"");
+              continue;
+            }
             matrix[d][t] = EXTERNAL;
           }
         }