utils: Fix typo.
cli: Use format instead of passing exception error directly to logger.