Have cow_domain_readsize function return errors on failure