pmorton/em-winrm — comment on commit aa6be927280540bb5c3cd23659bd2c8145dd84df
File:  line 0
By pmorton:

@schisamo - Take a look at this commit. Am thinking of issuing a pull request but want to get your feedback before I move forward. The main reason for adding an exception channel is that you need a way to fail gracefully. Currently if you have 10 servers you are running a command on and one of them excepts, the channel for all ten will crash and you will have to start all 10 of them over. By providing a channel for exceptions, you allow the user to be notified of the exception but continue on. In addition to notification I have added a tracking hash (exception) to the Session object so that the caller can get a list of the hosts that have excepted and handle it accordingly.

Thoughts?