Thrift: Fix untriggerable bug.
Reviewed By: mcslee
Test Plan: Compiled the Thrift compiler.
Revert Plan: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665228 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/main.cc b/compiler/cpp/src/main.cc
index 7e561e1..b070b3b 100644
--- a/compiler/cpp/src/main.cc
+++ b/compiler/cpp/src/main.cc
@@ -614,7 +614,7 @@
}
break;
default:
- throw "compiler error: no const of base type " + tbase + name;
+ throw "compiler error: no const of base type " + t_base_type::t_base_name(tbase) + name;
}
} else if (type->is_enum()) {
if (value->get_type() != t_const_value::CV_INTEGER) {