Introduce Command#has_errors? and clean related logic.
Simplify Command#add_error

A bit more fuctional-ish, so probably easier to split as sub-problems
and sub-methods and then to unit test eventually.