Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Show an error message when trying to rename a file outside of the project #12234

Merged
merged 2 commits into from
Mar 31, 2016

Conversation

marcelgerber
Copy link
Contributor

For #9650.

Renaming files outside of the project has never worked (see also #6896), but until now, we have just (more or less) no-oped in that case, leaving the user clueless on why the rename operation failed.
I think this is a better approach.

@petetnt
Copy link
Collaborator

petetnt commented Feb 20, 2016

LGMT 👍

errString = Strings.ERROR_RENAMING_NOT_IN_PROJECT;
} else {
errString = FileUtils.getFileErrorString(errorInfo.type);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it would be better to organize the entire decision tree as a switch (including line 1323).

@abose abose merged commit b05d263 into master Mar 31, 2016
@abose abose deleted the marcel/rename-outside-project-fail branch March 31, 2016 16:18
@abose
Copy link
Contributor

abose commented Mar 31, 2016

Thanks @marcelgerber . I have made pushed a minor change to this PR to use switch-case instead of if as @busykai suggested as this is targetted for 1.7.
Merging.

@marcelgerber
Copy link
Contributor Author

Thanks @abose. I'm mostly busy doing other stuff right now, so I greatly appreciate your effort!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants