Skip to content

Commit

Permalink
Improve an error message
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=95006895
  • Loading branch information
fare authored and kchodorow committed Jun 3, 2015
1 parent 3325824 commit cfb3aa5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected AbstractAction(ActionOwner owner,
this.outputs = ImmutableSet.copyOf(outputs);
this.runfilesSupplier = Preconditions.checkNotNull(runfilesSupplier,
"runfilesSupplier may not be null");
Preconditions.checkArgument(!this.outputs.isEmpty(), owner);
Preconditions.checkArgument(!this.outputs.isEmpty(), "action outputs may not be empty");
}

@Override
Expand Down Expand Up @@ -183,7 +183,7 @@ public String toString() {
protected abstract String computeKey();

@Override
public synchronized final String getKey() {
public final synchronized String getKey() {
if (cachedKey == null) {
cachedKey = computeKey();
}
Expand Down

0 comments on commit cfb3aa5

Please sign in to comment.