THRIFT-133. fix a small bug with smalltalk.prefix and smalltalk.package namespaces.
authorBryan Duxbury <bryanduxbury@apache.org>
Thu, 29 Jul 2010 18:39:06 +0000 (18:39 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Thu, 29 Jul 2010 18:39:06 +0000 (18:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980538 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/parse/t_program.h

index 420242f..68697c6 100644 (file)
@@ -166,7 +166,9 @@ class t_program : public t_doc {
     it=my_copy.find(language);
 
     if (it == my_copy.end()) {
-      throw "No generator named '" + language + "' could be found!";
+      if (language != "smalltalk.prefix" && language != "smalltalk.package") {
+        throw "No generator named '" + language + "' could be found!";
+      }
     }
     namespaces_[language] = name_space;
   }