# Feature request: better IndexError

**URL:** <https://forum.crystal-lang.org/t/feature-request-better-indexerror/1220>\
**Category:** Crystal Contrib\
**Created:** [October 11, 2019, 4:27am UTC](https://forum.crystal-lang.org/t/feature-request-better-indexerror/1220 "2019-10-11T04:27:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogerdpack](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/rogerdpack/32/117_2.png) [@rogerdpack](https://forum.crystal-lang.org/u/rogerdpack)\
**Post date:** [October 11, 2019, 4:27am UTC](https://forum.crystal-lang.org/t/feature-request-better-indexerror/1220/1 "2019-10-11T04:27:40Z")

</div>

If my code says  
a = arr[b // 2]  
Index out of bounds

It would be nice to see what the values were like

Index out of bounds, requested 23, size is 20

or something like that :)  
Cheers!
