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 420242f..68697c6 100644
--- a/compiler/cpp/src/parse/t_program.h
+++ b/compiler/cpp/src/parse/t_program.h
@@ -166,7 +166,9 @@
     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;
   }