diff options
author | Marvin Borner | 2019-05-17 20:41:29 +0200 |
---|---|---|
committer | Marvin Borner | 2019-05-17 20:41:29 +0200 |
commit | b53ce4dac1429118888297989ec0746ec9e0fd0c (patch) | |
tree | 358e1f7dc55409b6b6b664d3c6a9e3d29d2dc9bb /src/main/kotlin/FileController.kt | |
parent | 270f58144eac1797ef55567d644d6213f315bb15 (diff) |
Added final improvements for release 1.0v1.0
Co-authored-by: LarsVomMars <lars@kroenner.eu>
Diffstat (limited to 'src/main/kotlin/FileController.kt')
-rw-r--r-- | src/main/kotlin/FileController.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/FileController.kt b/src/main/kotlin/FileController.kt index e75969c..d1e1870 100644 --- a/src/main/kotlin/FileController.kt +++ b/src/main/kotlin/FileController.kt @@ -47,7 +47,8 @@ class FileController { ctx.result(FileInputStream(File(fileLocation))) } } - } catch (_: Exception) { + } catch (err: Exception) { + log.error(err.toString()) throw NotFoundResponse("Error: File or directory does not exist.") } } |