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