add .error Error object. Closes #156
add .error Error object to client