Better upload error handling using Google::APIClient::Result interface