Moved internal error stream retrieval into helper method