Skip to content

Commit

Permalink
Improve error message for --incompatible_string_join_requires_strings
Browse files Browse the repository at this point in the history
Fixes bazelbuild#8507

Closes bazelbuild#8519.

Change-Id: Ia2967b8765a6f47094dd382a8c963ec01132066c
PiperOrigin-RevId: 250705179
  • Loading branch information
jin authored and copybara-github committed May 30, 2019
1 parent 4aa1d1a commit 089e017
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ public String join(String self, SkylarkList<?> elements, Location loc, Environme
if (!(item instanceof String)) {
throw new EvalException(
loc,
"sequence element must be a string (got '" + EvalUtils.getDataTypeName(item) + "')");
"sequence element must be a string (got '"
+ EvalUtils.getDataTypeName(item)
+ "'). See https://github.com/bazelbuild/bazel/issues/7802 for information about "
+ "--incompatible_string_join_requires_strings.");
}
}
}
Expand Down

0 comments on commit 089e017

Please sign in to comment.