adding error as a service