Commit a1fb0abb authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

protoc_wrapper: Fix typo in exception class name

This CL fixes this script to use a correct exception class
(RuntimeError) instead of non-existing RuntimeException one.

Bug: none
Change-Id: I221f66ac7eac4af46f53f7137840fbf62445e4d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2426567
Commit-Queue: Maksim Ivanov <emaxx@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Auto-Submit: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: default avatarDirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#810031}
parent e7745ead
...@@ -53,7 +53,7 @@ def WriteIncludes(headers, include): ...@@ -53,7 +53,7 @@ def WriteIncludes(headers, include):
contents.append(stripped_line) contents.append(stripped_line)
if stripped_line == PROTOC_INCLUDE_POINT: if stripped_line == PROTOC_INCLUDE_POINT:
if include_point_found: if include_point_found:
raise RuntimeException("Multiple include points found.") raise RuntimeError("Multiple include points found.")
include_point_found = True include_point_found = True
extra_statement = "#include \"{0}\"".format(include) extra_statement = "#include \"{0}\"".format(include)
contents.append(extra_statement) contents.append(extra_statement)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment