CLI: Error messaging is showing *undefined*