Skip to content

Commit 4f3ab88

Browse files
committed
fix(compiler): log toolchain execution errors
Add logging for exceptions caught during toolchain function execution to improve debugging.
1 parent 3f557c7 commit 4f3ab88

File tree

1 file changed

+1
-0
lines changed
  • exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler

1 file changed

+1
-0
lines changed

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/DevInsCompiler.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ class DevInsCompiler(
352352
val result = try {
353353
provider.execute(myProject!!, prop, args, emptyMap())
354354
} catch (e: Exception) {
355+
logger<DevInsCompiler>().warn(e)
355356
AutoDevNotifications.notify(myProject!!, "Error executing toolchain function: ${e.message}")
356357
}
357358

0 commit comments

Comments
 (0)