Skip to content

Commit 5c36e63

Browse files
committed
fix: improve not found error for user preferences
1 parent 81df924 commit 5c36e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/preferences/userpreferences.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func ReadUserPreferences() (*UserPreferences, error) {
8989
func (up *UserPreferences) WriteToFile() error {
9090
file, err := os.Create(utils.NitricPreferencesPath())
9191
if err != nil {
92-
return err
92+
return fmt.Errorf("failed to update user preferences.\n\tUnable to access file: %s", utils.NitricPreferencesPath())
9393
}
9494
defer file.Close()
9595

0 commit comments

Comments
 (0)