Skip to content

Commit

Permalink
Display the exception raised by GCP HTTP libs (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgayon authored Apr 3, 2024
1 parent a48512b commit f840890
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcloudforensics/providers/gcp/forensics.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def CreateDiskCopy(
except HttpError as exception:
if exception.resp.status == 403:
raise errors.CredentialsConfigurationError(
'Make sure you have the appropriate permissions on the project',
'Make sure you have the appropriate permissions on the project: '
'{0!s}'.format(exception),
__name__) from exception
if exception.resp.status == 404:
raise errors.ResourceNotFoundError(
Expand Down

0 comments on commit f840890

Please sign in to comment.