This commit is contained in:
Lennart Kats 2024-09-09 09:28:32 +02:00
parent 8abae34f7c
commit b11917e559
No known key found for this signature in database
GPG Key ID: 1EB8B57673197023
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ func (m *upload) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnostics {
b.Files, err = sync.RunOnce(ctx)
if err != nil {
if errors.Is(err, fs.ErrPermission) {
return permissions.ReportPossiblePermissionDenied(ctx, b, b.Config.Workspace.StatePath)
return permissions.ReportPossiblePermissionDenied(ctx, b, b.Config.Workspace.FilePath)
}
return diag.FromErr(err)
}