diff options
author | Marvin Borner | 2019-04-20 14:49:04 +0200 |
---|---|---|
committer | Marvin Borner | 2019-04-20 14:49:04 +0200 |
commit | 034dfe305973a0f2e7deb0c9776605664ea9b169 (patch) | |
tree | 908864d3b1a08635288a02d6f0bf51ea80ebffda /src/main/kotlin/DatabaseController.kt | |
parent | 9fe9795c996a6e37e894f7e42ba8761320c47798 (diff) |
Fixed many minor things regarding stability
Co-authored-by: LarsVomMars <lars@kroenner.eu>
Diffstat (limited to 'src/main/kotlin/DatabaseController.kt')
-rw-r--r-- | src/main/kotlin/DatabaseController.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/DatabaseController.kt b/src/main/kotlin/DatabaseController.kt index 888171c..b3fac60 100644 --- a/src/main/kotlin/DatabaseController.kt +++ b/src/main/kotlin/DatabaseController.kt @@ -274,7 +274,7 @@ class DatabaseController(dbFileLocation: String = "main.db") { ReturnFileData(userId, fileLocation, isDir) } else ReturnFileData(-1, "", false) - } catch (_: org.jetbrains.exposed.exceptions.ExposedSQLException) { + } catch (_: Exception) { log.warning("File does not exist!") ReturnFileData(-1, "", false) } @@ -373,4 +373,4 @@ data class ReturnFileData( val userId: Int, val fileLocation: String, val isDirectory: Boolean -) // TODO: Think about using dataclass +) |