summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler
diff options
context:
space:
mode:
Diffstat (limited to 'tools/json_schema_compiler')
-rw-r--r--tools/json_schema_compiler/cpp_type_generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/json_schema_compiler/cpp_type_generator.py b/tools/json_schema_compiler/cpp_type_generator.py
index edfe79f..acaa52b 100644
--- a/tools/json_schema_compiler/cpp_type_generator.py
+++ b/tools/json_schema_compiler/cpp_type_generator.py
@@ -248,8 +248,8 @@ class CppTypeGenerator(object):
"""
if ref_type in self._type_namespaces:
return self._type_namespaces[ref_type]
- raise KeyError(('Cannot resolve type: %s.' % ref_type) +
- 'Maybe it needs a namespace prefix if it comes from another namespace?')
+ raise KeyError('Cannot resolve type: %s. Maybe it needs a namespace prefix '
+ 'if it comes from another namespace?' % ref_type)
return None
def GetReferencedProperty(self, prop):