[Command] Use a case statement in Pod::Command#report_error

Addresses https://github.com/CocoaPods/CocoaPods/commit/0c80af37f1fec0009ad63277309afa47ad22595f#commitcomment-7718723.