Skip to content

Commit

Permalink
Update Config.kt
Browse files Browse the repository at this point in the history
如果没有配置文件,应该直接提前报错,终端 Task 执行。
  • Loading branch information
pdog18 committed Dec 22, 2019
1 parent a883afb commit fe5209a
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -111,7 +111,12 @@ class Config {
System.out.println("parseTraceConfigFile start!!!!!!!!!!!!")
val traceConfigFile = File(mTraceConfigFile)
if (!traceConfigFile.exists()) {
System.out.println("trace config file not exist")
throw FileNotFoundException(
"""
Trace config file not exist, Please read quickstart.
找不到 $mTraceConfigFile 配置文件, 尝试阅读一下 QuickStart。
""".trimIndent()
)
}

val configStr = Utils.readFileAsString(traceConfigFile.absolutePath)
Expand Down

0 comments on commit fe5209a

Please sign in to comment.