Skip to content

Commit

Permalink
Add a else clause to generate_imports to guide users to open an issue (
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Apr 16, 2019
1 parent 69e0ae5 commit dbc4aa7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions coursier.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,18 @@ Parsed artifact data: {parsed_artifact}""".format(
)

fail(error_message)
else:
error_message = """Unable to generate a target for this artifact.
Please file an issue on https://github.com/bazelbuild/rules_jvm_external/issues/new
and include the following snippet:
Artifact coordinates: {artifact}
Parsed data: {parsed_artifact}""".format(
artifact = artifact["coord"],
parsed_artifact = repr(artifact)
)
fail(error_message)

return "\n".join(all_imports)

Expand Down

0 comments on commit dbc4aa7

Please sign in to comment.