Adding more information to stream wrapper errors