Skip to content

Commit 6fba38b

Browse files
committed
Make access denied error an input error.
1 parent d180c70 commit 6fba38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/projectfile/yamlfield.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (y *yamlField) Save(path string) error {
5959

6060
if err := os.WriteFile(path, out, 0664); err != nil {
6161
if osutils.IsAccessDeniedError(err) {
62-
return locale.WrapError(err, "err_migrate_projectfile_access_denied",
62+
return locale.WrapInputError(err, "err_migrate_projectfile_access_denied",
6363
"Your project file at '{{.V0}}' is out of date, but State Tool does not have permission to update it. Please make it writeable or re-checkout the project to a writeable location.",
6464
path)
6565
}

0 commit comments

Comments
 (0)