diff --git a/plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerSessionContext.kt b/plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerSessionContext.kt index 7db78281ef..f2b22ab00b 100644 --- a/plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerSessionContext.kt +++ b/plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerSessionContext.kt @@ -85,12 +85,14 @@ data class CodeModernizerSessionContext( } } if (detectedPaths.size > 0) { - val warningMessage = "We detected ${detectedPaths.size} absolute ${if (detectedPaths.size == 1) "path" else "paths"} (${detectedPaths.joinToString(", ")}) in this file: ${buildFile.path.substringAfterLast(File.separator)}, which may cause issues during our backend build. You will see error logs open if this happens." + val warningMessage = "We detected ${detectedPaths.size} absolute ${if (detectedPaths.size == 1) "path" else "paths"} " + + "(${detectedPaths.joinToString(", ")}) in this file: ${buildFile.path.substringAfterLast(File.separator)}, " + + "which may cause issues during our backend build. You will see error logs open if this happens." notifyStickyWarn( "Absolute path detected", warningMessage, ) - LOG.info("CodeTransformation: absolute path potentially in build file") + LOG.info { "CodeTransformation: absolute path potentially in build file" } return true } }