removed the double wrap, by not passing an Error object to the wrap function.  fixes #824
Merge remote-tracking branch 'm4tty/824-fix'
Fixed wrap issue when error is not an object