File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/kotlin/cc/unitmesh/devti Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package cc.unitmesh.devti
2
2
3
3
import cc.unitmesh.devti.settings.AutoDevSettingsState
4
4
import com.intellij.DynamicBundle
5
+ import com.intellij.openapi.diagnostic.logger
5
6
import org.jetbrains.annotations.NonNls
6
7
import org.jetbrains.annotations.PropertyKey
7
8
import java.lang.invoke.MethodHandles
@@ -20,6 +21,7 @@ object AutoDevBundle : DynamicBundle(BUNDLE) {
20
21
fun messagePointer (@PropertyKey(resourceBundle = BUNDLE ) key : String , vararg params : Any ) =
21
22
getLazyMessage(key, * params)
22
23
24
+ val log = logger<AutoDevBundle >()
23
25
override fun findBundle (
24
26
@NonNls pathToBundle : String ,
25
27
loader : ClassLoader ,
@@ -44,8 +46,7 @@ object AutoDevBundle : DynamicBundle(BUNDLE) {
44
46
method.isAccessible = true
45
47
MethodHandles .lookup().unreflect(method).bindTo(localeBundle).invoke(base)
46
48
} catch (e: Throwable ) {
47
- // ignored, better handle this in production code
49
+ log.error( " Failed to set parent " , e)
48
50
}
49
51
}
50
-
51
52
}
You can’t perform that action at this time.
0 commit comments