(#1167) - acutal error objects

pull for #1167, tests inexplicably fail in node for me, not sure why.