aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-02-04 12:27:37 +0100
committerAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-02-04 12:33:21 +0100
commit7e52fb01b79cb6917b0d1ace31dff9c6a26e013f (patch)
treec3f4b0d0388b6b816dfee44767b34baf727315cf /core/src
parent582f5f89557e943169c10a4fc3d58d99528d8e86 (diff)
downloaddokka-7e52fb01b79cb6917b0d1ace31dff9c6a26e013f.tar.gz
dokka-7e52fb01b79cb6917b0d1ace31dff9c6a26e013f.tar.bz2
dokka-7e52fb01b79cb6917b0d1ace31dff9c6a26e013f.zip
Implements DokkaLogger interface by MavenDokkaLogger
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/renderers/FileWriter.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/main/kotlin/renderers/FileWriter.kt b/core/src/main/kotlin/renderers/FileWriter.kt
index 3cb3b5b5..78cfdde7 100644
--- a/core/src/main/kotlin/renderers/FileWriter.kt
+++ b/core/src/main/kotlin/renderers/FileWriter.kt
@@ -18,11 +18,10 @@ class FileWriter(val context: DokkaContext, override val extension: String): Out
createdFiles.add(path)
try {
-// println("Writing $root/$path$ext")
val dir = Paths.get(root, path.dropLastWhile { it != '/' }).toFile()
dir.mkdirsOrFail()
Files.write(Paths.get(root, "$path$ext"), text.lines())
- } catch (e : Throwable) {
+ } catch (e: Throwable) {
context.logger.error("Failed to write $this. ${e.message}")
e.printStackTrace()
}