summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-28 06:16:52 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-28 06:16:52 +0000
commitcd81a65a5ab4619df60a900a875e78cf3f98cdfe (patch)
treeb9eca0c31c1e12508308bdbf9a2b85c7d638ce0a /tools/json_schema_compiler
parent320204b31172c53d3735c8f8ffa06829aa66fac7 (diff)
downloadchromium_src-cd81a65a5ab4619df60a900a875e78cf3f98cdfe.zip
chromium_src-cd81a65a5ab4619df60a900a875e78cf3f98cdfe.tar.gz
chromium_src-cd81a65a5ab4619df60a900a875e78cf3f98cdfe.tar.bz2
Fix a minor nit in the JSON schema compiler.
Review URL: https://chromiumcodereview.appspot.com/10869083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153633 0039d316-1c4b-4281-b951-d872f2087c98
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):