From b53ce4dac1429118888297989ec0746ec9e0fd0c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 17 May 2019 20:41:29 +0200 Subject: Added final improvements for release 1.0 Co-authored-by: LarsVomMars --- src/main/kotlin/FileController.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/FileController.kt') 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.") } } -- cgit v1.2.3