From: Bryan Duxbury Date: Thu, 29 Jul 2010 18:39:06 +0000 (+0000) Subject: THRIFT-133. fix a small bug with smalltalk.prefix and smalltalk.package namespaces. X-Git-Tag: 0.4.0~37 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=c687712d18ae6db3f5ca06f49acdebf86635e1de;p=common%2Fthrift.git THRIFT-133. fix a small bug with smalltalk.prefix and smalltalk.package namespaces. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980538 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/src/parse/t_program.h b/compiler/cpp/src/parse/t_program.h index 420242fb..68697c6e 100644 --- a/compiler/cpp/src/parse/t_program.h +++ b/compiler/cpp/src/parse/t_program.h @@ -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; }