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

Multi-language support for simple values #62

Merged
merged 34 commits into from
Jul 28, 2015
Merged

Multi-language support for simple values #62

merged 34 commits into from
Jul 28, 2015

Conversation

alexvetter
Copy link
Collaborator

No description provided.

@@ -135,7 +135,7 @@ class MediaController(override val config: TableauxConfig,
_ <- {
import FutureUtils._
promisify({ p: Promise[Unit] =>
vertx.fileSystem.delete(path.toString(), {result => p.success()})
vertx.fileSystem.delete(path.toString(), {result => p.success(())})
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if fileSystem.delete fails? Shouldn't it check the result and make a p.success()/p.failure()?

p.success()
})
// succeed also in error cause (directory already exists)
vertx.fileSystem.mkdir(s"$uploadsDirectory", { result => p.success() })
Copy link
Contributor

Choose a reason for hiding this comment

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

You might not have all permissions to create this directory, so it's not always only "directory already exists". Maybe it's a special exception (EEXISTS) that can be checked against and succeed in that special case.

@alexvetter
Copy link
Collaborator Author

closes #54

@alexvetter alexvetter closed this Jul 28, 2015
@alexvetter alexvetter reopened this Jul 28, 2015
alexvetter added a commit that referenced this pull request Jul 28, 2015
Multi-language support for simple values
@alexvetter alexvetter merged commit b1afe4c into master Jul 28, 2015
@alexvetter alexvetter deleted the multi-language branch July 28, 2015 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants