From c687712d18ae6db3f5ca06f49acdebf86635e1de Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Thu, 29 Jul 2010 18:39:06 +0000 Subject: [PATCH] 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 --- compiler/cpp/src/parse/t_program.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.17.1