Include the original Command in the io::Error?

Would it be possible to change the APIs of Command to include the problem Command in the io::Error?

Alternatively, maybe it's time for an process::Error or maybe an extension crate that makes Command have useful errors?

Nevermind, it seems Command actively prevents you from doing this.

Some time ago I proposed adding a field with the offending filename (if any) to io::Error. 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.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.