-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
…bleauxModel (dependency needed because of "completetable"-feature)
@@ -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(())}) |
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.
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() }) |
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.
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.
closes #54 |
Multi-language support for simple values
No description provided.