Skip to content
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

delete entities files now ignores file do not exist error #902

Merged
merged 2 commits into from
Mar 28, 2017
Merged

Conversation

daneryl
Copy link
Collaborator

@daneryl daneryl commented Mar 28, 2017

Fixes issue #873

PR check list:

  • Client test
  • Server test
  • End-to-end test
  • Pass code linter to client and server
  • Database views added ?
  • Update READ.me ?

QA check list:

  • Smoke test the functionality described in the issue
  • Smoke test potential collaterals
  • UI responsiveness
  • Tested in a browser other than chrome
  • Code review ?

NOTE: Make sure the build passes.

return deleteFiles(filesToDelete);
return deleteFiles(filesToDelete)
.catch((error) => {
if (error.errno === -2) {
Copy link
Member

Choose a reason for hiding this comment

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

Extract that -2 to a const so we know what type of errors we ignore

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@konzz konzz merged commit 19d7444 into development Mar 28, 2017
@konzz konzz deleted the 873 branch March 28, 2017 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants