You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2010/07/29 20:39:06 UTC

svn commit: r980538 - /incubator/thrift/trunk/compiler/cpp/src/parse/t_program.h

Author: bryanduxbury
Date: Thu Jul 29 18:39:06 2010
New Revision: 980538

URL: http://svn.apache.org/viewvc?rev=980538&view=rev
Log:
THRIFT-133. fix a small bug with smalltalk.prefix and smalltalk.package namespaces.

Modified:
    incubator/thrift/trunk/compiler/cpp/src/parse/t_program.h

Modified: incubator/thrift/trunk/compiler/cpp/src/parse/t_program.h
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/parse/t_program.h?rev=980538&r1=980537&r2=980538&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/parse/t_program.h (original)
+++ incubator/thrift/trunk/compiler/cpp/src/parse/t_program.h Thu Jul 29 18:39:06 2010
@@ -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;
   }