We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7ba5c commit 07dafa4Copy full SHA for 07dafa4
src/main/scala/decaf/driver/OptParser.scala
@@ -73,8 +73,8 @@ object OptParser extends OptionParser[Config]("decaf") {
73
.text("also dump log to a file")
74
.action { case (f, config) => config.copy(logFile = f) }
75
.validate { f =>
76
- if (!f.exists) {
77
- Left("file not exist: " + f)
+ if (f.getParentFile != null && !f.getParentFile.exists) {
+ Left("parent directory not exist: " + f.getParentFile)
78
} else {
79
Right()
80
}
0 commit comments