Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Update repository_rules.bzl (#730)
Browse files Browse the repository at this point in the history
Adding starlark string coercion to fix error: `unsupported operand type(s) for +: 'string' and 'int'`

## Discussion
This error hides the real error code when trying to read in the attributes file
  • Loading branch information
cgrinker authored and vam-google committed Sep 4, 2019
1 parent 2a30968 commit a4aec0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository_rules.bzl
Expand Up @@ -31,7 +31,7 @@ def _com_google_api_gax_java_properties_impl(ctx):
result = ctx.execute(["cat", props_path])

if result.return_code != 0:
fail("Could not load dependencies from properties file, error_code %s" + result.return_code)
fail("Could not load dependencies from properties file, error_code %s" + str(result.return_code))

props = result.stdout.splitlines()
props_as_map = {}
Expand Down

0 comments on commit a4aec0f

Please sign in to comment.