cmd: improve error messages