If settings.json exists, but cannot be read, we should error saying the permissions are incorrect, instead of immediately overwriting the file.
Fixes #22571
If settings.json exists, but cannot be read, we should error saying the permissions are incorrect, instead of immediately overwriting the file.
Fixes #22571
Please squash your commits. For guidance on squashing, see: CONTRIBUTING.md#squashing-commits
additionally the commit message should read: util: don't overwrite existing settings.json
or somthing similar, however you deem appropriate.
... I'm not sure what I just did here. I branched from master on my fork, which was out of date, and I was trying to fix that. hopefully nothing broke?
Will try again.