Skip to content

Commit

Permalink
Add execution info to action conflict error message
Browse files Browse the repository at this point in the history
The execution info is part of the action, so including it in the error message
makes the reported error easier to diagnose when two targets performing the
same action have different execution info.

PiperOrigin-RevId: 680633760
Change-Id: I6a93bf3584b5306456b712c84351145939c119b8
  • Loading branch information
rickeylev authored and copybara-github committed Sep 30, 2024
1 parent 824cf9f commit af38f3b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,11 @@ public String describeKey() {
message.append(ShellEscaper.escapeString(var));
message.append('\n');
}
for (Map.Entry<String, String> entry : getExecutionInfo().entrySet()) {
message.append(" Execution info: ");
message.append(entry.getKey()).append('=').append(entry.getValue());
message.append('\n');
}
try {
for (String argument : ShellEscaper.escapeAll(getArguments())) {
message.append(" Argument: ");
Expand Down

0 comments on commit af38f3b

Please sign in to comment.