Skip to content

Commit bc9ed48

Browse files
committed
don't catch throwable
1 parent 746a4bd commit bc9ed48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mod/src/main/kotlin/gay/object/mlogv32/Mlogv32UtilsMod.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Mlogv32UtilsMod : Mod() {
2929

3030
val bytes = try {
3131
processor.flashRom(file)
32-
} catch (e: Throwable) {
32+
} catch (e: Exception) {
3333
Log.err("Failed to flash file.", e)
3434
return@register
3535
}
@@ -77,7 +77,7 @@ class Mlogv32UtilsMod : Mod() {
7777

7878
try {
7979
processor.dumpRam(file, startAddress, bytes)
80-
} catch (e: Throwable) {
80+
} catch (e: Exception) {
8181
Log.err("Failed to dump RAM.", e)
8282
return@register
8383
}

0 commit comments

Comments
 (0)