As discussed above, `WP_CLI::error()` does indeed accept a `WP_Error` object.