Changed the way that embedded errors are returned. This is a breaking change, hence the bump to v2.0.0