Skip to content

Commit 2b01905

Browse files
author
graham jenson
committed
better failure report
1 parent 492dca3 commit 2b01905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/private/sdk.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ load(
44
)
55

66
def ruby_register_toolchains(version = "host"):
7-
"""Registersr ruby toolchains in the WORKSPACE file."""
7+
"""Registers ruby toolchains in the WORKSPACE file."""
88

99
supported_versions = ["host", "2.6.3", "2.6.5"]
1010
if version in supported_versions:
@@ -13,7 +13,7 @@ def ruby_register_toolchains(version = "host"):
1313
version = version,
1414
)
1515
else:
16-
fail("unsupported ruby version in `ruby_register_toolchains`")
16+
fail("ruby_register_toolchains: unsupported ruby version '%s' not in '%s'" % (version, supported_versions))
1717

1818
native.register_toolchains(
1919
"@org_ruby_lang_ruby_toolchain//:toolchain",

0 commit comments

Comments
 (0)