Skip to content

Commit

Permalink
Rework error now that we can no longer detect permission errors
Browse files Browse the repository at this point in the history
This was working a bit better before 26c3b42
  • Loading branch information
lennartkats-db committed Sep 12, 2024
1 parent 3b33d8c commit bfe36fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/deploy/lock/acquire.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (m *acquire) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnostics
if errors.As(err, &notExistsError) {
// If we get a "doesn't exist" error from the API this indicates
// we either don't have permissions or the path is invalid.
return diag.Errorf("cannot write to deployment root (this can indicate a previous deploy was done with a different identity): %s", b.Config.Workspace.RootPath)
return permissions.ReportPossiblePermissionDenied(ctx, b, b.Config.Workspace.StatePath)
}

return diag.FromErr(err)
Expand Down

0 comments on commit bfe36fc

Please sign in to comment.