Skip to content

Commit

Permalink
🧹 Improve the wording of the GCP instance scanning error (#1612)
Browse files Browse the repository at this point in the history
Make it a bit more clear where this all needs to run

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 authored Aug 31, 2023
1 parent 2034695 commit 134c719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions motor/providers/gcpinstancesnapshot/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ func determineScannerInstanceInfo() (*scannerInstance, error) {
}
scannerInstanceInfo, err := gce.Resolve(localProvider, pf)
if err != nil {
return nil, errors.New("gcp snapshot provider needs to run on a gcp instance")
return nil, errors.New("GCP snapshot provider must run from a GCP VM instance")
}
identity, err := scannerInstanceInfo.Identify()
if err != nil {
return nil, errors.New("gcp snapshot provider needs to run on a gcp instance")
return nil, errors.New("GCP snapshot provider must run from a GCP VM instance")
}
instanceID := identity.PlatformMrn

Expand Down

0 comments on commit 134c719

Please sign in to comment.