fix: refactor inconsistent behavior on CLI::write() and CLI::error()
#5130
Loading
CLI::write() and CLI::error()
#5130