Skip to content

Commit fbe2e19

Browse files
No more capture all exceptions
Catch only IOException for now, being the issue we are encountering now. That try/catch block can be removed, when the `.gitignore` file content is taken into account.
1 parent a8fafc4 commit fbe2e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/kotlin/org/javacs/kt/SourceFiles.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class SourceFiles(private val sp: SourcePath) {
110110

111111
try {
112112
content = Files.readAllLines(file).joinToString("\n")
113-
} catch(exception:Exception) {
113+
} catch(exception: IOException) {
114114
LOG.warn("Exception while parsing source file : ${file.toFile().absolutePath}")
115115
}
116116

0 commit comments

Comments
 (0)