-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let LocalFile.internalDelete return IStatus instead of boolean #560
Let LocalFile.internalDelete return IStatus instead of boolean #560
Conversation
0c82f99
to
6f76904
Compare
Test Results 42 files ±0 42 suites ±0 55m 50s ⏱️ +5s For more details on these failures, see this check. Results for commit bbf7392. ± Comparison against base commit 1422671. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, that's a reasonable enhancement.
Just a few suggestions for minor code improvements.
And can you please resolve the conflicts.
...es/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFile.java
Outdated
Show resolved
Hide resolved
...es/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFile.java
Outdated
Show resolved
Hide resolved
...es/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFile.java
Outdated
Show resolved
Hide resolved
...es/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFile.java
Outdated
Show resolved
Hide resolved
...es/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFile.java
Outdated
Show resolved
Hide resolved
By returning an IStatus instead of a boolean, the method can better tell callers what went wrong when deleting. The idea is to replace the MultiStatus returned by the "delete" method with a more describing status.
6f76904
to
bbf7392
Compare
Thank you @HannesWell for the suggestions! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thank you.
This PR will help identifying the underlying error that's causing #275 by replacing the vague
MultiStatus
returned byLocalFile::delete
with a more describingIStatus
created insideinternalDelete
.