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