Fixing errore reporting issue in the cli utility class.