homogenize errors in client-cli