# Some variables are defined but not used

**URL:** <https://discuss.dgraph.io/t/some-variables-are-defined-but-not-used/19469>\
**Category:** Dgraph\
**Created:** [July 26, 2024, 7:25pm UTC](https://discuss.dgraph.io/t/some-variables-are-defined-but-not-used/19469 "2024-07-26T19:25:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![markushedlund](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/markushedlund/32/10286_2.png) [@markushedlund](https://discuss.dgraph.io/u/markushedlund)\
**Post date:** [July 26, 2024, 7:25pm UTC](https://discuss.dgraph.io/t/some-variables-are-defined-but-not-used/19469/1 "2024-07-26T19:25:35Z")

</div>

Haven’t checked in v24, but in v21 and v23 this error could be improved.  
Instead saying

```auto
"Some variables are defined but not used\nDefined:[A, B, C, D, E, F]\nUsed:[A, C, D, E, F]\n"

```

can it say something like

```auto
"Some variables are defined but not used:[B]\n"

```
