From dfd0d3b1c1754c692adb86c719136b31835fa0e8 Mon Sep 17 00:00:00 2001 From: Clark Gibson Rinker Date: Tue, 4 Jun 2019 17:19:28 -0700 Subject: [PATCH] Update repository_rules.bzl 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 --- repository_rules.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository_rules.bzl b/repository_rules.bzl index 4d2120fe8..2f0c6c66b 100644 --- a/repository_rules.bzl +++ b/repository_rules.bzl @@ -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 = {}