# Include the original Command in the io::Error?

**URL:** https://internals.rust-lang.org/t/include-the-original-command-in-the-io-error/14365
**Category:** libs
**Created:** [March 28, 2021, 7:34pm UTC](https://internals.rust-lang.org/t/include-the-original-command-in-the-io-error/14365 "2021-03-28T19:34:00Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![zackw](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/zackw/32/2071_2.png) [@zackw](https://internals.rust-lang.org/u/zackw)
#### Post date: [March 30, 2021, 6:19pm UTC](https://internals.rust-lang.org/t/include-the-original-command-in-the-io-error/14365/3 "2021-03-30T18:19:04Z")

</div>

Some time ago I proposed [adding a field with the offending _filename_ (if any) to `io::Error`](https://internals.rust-lang.org/t/add-filename-information-to-io-error/5120). It was shot down largely because people didn't want `io::Error` to have to box up any variable-sized data. I still wish it did, but I can see where they're coming from.

---

_[View the full topic](https://internals.rust-lang.org/t/include-the-original-command-in-the-io-error/14365)._
