googlecodelabs / gcp-marketplace-integrated-saas

Apache License 2.0
19 stars 22 forks source link

Add API enablement note to error #2

Closed deci-ftw closed 5 years ago

deci-ftw commented 5 years ago

We've seen two cases where PermissionDenied can get caught; wrong IAM roles on the SA, and the API just not being enabled at all for the specified project. Adding more info to our error message to be more helpful.

Bonus: Made the whole error message one variable, so we don't have to call print multiple times.