# Bad logging string misses parameters

**URL:** <https://discuss.gradle.org/t/bad-logging-string-misses-parameters/1110>\
**Category:** Old Forum Archive\
**Created:** [October 4, 2013, 8:03am UTC](https://discuss.gradle.org/t/bad-logging-string-misses-parameters/1110 "2013-10-04T08:03:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddimitrov](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/ddimitrov/32/141_2.png) [@ddimitrov](https://discuss.gradle.org/u/ddimitrov)\
**Post date:** [October 4, 2013, 8:03am UTC](https://discuss.gradle.org/t/bad-logging-string-misses-parameters/1110/1 "2013-10-04T08:03:00Z")

</div>

org.gradle.api.internal.tasks.testing.junit.result.TestOutputStore.Reader#Reader() has the following line:

```gradle
throw new IllegalStateException(String.format("Test outputs data file '{}' exists but the index file '{}' does not", outputsFile, indexFile));

```

The problem is that String.format() does not recognize the {} placeholder and the names of the files are lost and gradle outputs:

```gradle
FAILURE: Build failed with an exception.
  * What went wrong:
Execution failed for task ':aggregatedTestReport'.
> Test outputs data file '{}' exists but the index file '{}' does not

```

---

<div class="post-metadata">

**Author:** ![Rene](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/rene/32/8082_2.png) [@Rene](https://discuss.gradle.org/u/Rene)\
**Post date:** [October 4, 2013, 8:53am UTC](https://discuss.gradle.org/t/bad-logging-string-misses-parameters/1110/2 "2013-10-04T08:53:00Z")

</div>

Hello. thanks for reporting. just fixed it on master

([https://github.com/gradle/gradle/commit/b4f924b0d6de89946f86f982f8fd8b4f7629fc76](https://github.com/gradle/gradle/commit/b4f924b0d6de89946f86f982f8fd8b4f7629fc76))
