Repository: ballerina-platform/module-ballerina-c2c
Issue: Add variable name to non default configurable warning

**Description:**
$Subject

**Describe your problem(s)**

**Describe your solution(s)**

**Related Issues (optional):**
<!-- Any related issues such as sub tasks, issues reported in other repositories (e.g component repositories), similar problems, etc. -->

**Suggested Labels (optional):**
<!-- Optional comma separated list of suggested labels. Non committers can’t assign labels to issues, so this will help issue creators who are not a committer to suggest possible labels-->

**Suggested Assignees (optional):**
<!--Optional comma separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, so this will help issue creators who are not a committer to suggest possible assignees-->


Changed files:
cloud-util/src/main/java/io/ballerina/c2c/util/C2CVisitor.java
compiler-plugin-tests/src/test/java/io/ballerina/c2c/test/CustomDiagnosticsTest.java
cloud-util/src/main/java/io/ballerina/c2c/util/C2CDiagnosticCodes.java

diff --git a/cloud-util/src/main/java/io/ballerina/c2c/util/C2CDiagnosticCodes.java b/cloud-util/src/main/java/io/ballerina/c2c/util/C2CDiagnosticCodes.java
index 590d694..f9b9426 100644
--- a/cloud-util/src/main/java/io/ballerina/c2c/util/C2CDiagnosticCodes.java
+++ b/cloud-util/src/main/java/io/ballerina/c2c/util/C2CDiagnosticCodes.java
@@ -30,11 +30,12 @@ import static io.ballerina.tools.diagnostics.DiagnosticSeverity.WARNING;
 /**
  * {@code DiagnosticCodes} is used to hold diagnostic codes.
  */
-public enum C2CDiagnosticCodes {    
+public enum C2CDiagnosticCodes {
     PATH_CONTENT_READ_FAILED("C2C_001", "unable to read contents of the file `%s`", ERROR),
     FAILED_PORT_RETRIEVAL("C2C_002", "failed to retrieve port", WARNING),
     VALUE_STRING_ONLY_SUPPORTED("C2C_003", "https config extraction only supports basic string paths", WARNING),
-    CONFIGURABLE_NO_DEFAULT("C2C_005", "configurables with no default value is not supported", WARNING),
+    CONFIGURABLE_NO_DEFAULT("C2C_005", "default value is not specified for the configurable variable `%s`. cloud " +
+            "artifacts will not be generated for this variable", WARNING),
     CONFIGURABLE_OVERRIDE("C2C_006", "default value of configurable variable `%s` could be overridden in runtime",
             WARNING),
     DIRECTORY_DELETE_FAILED("C2C_007", "unable to delete directory: `%s`", WARNING),
diff --git a/cloud-util/src/main/java/io/ballerina/c2c/util/C2CVisitor.java b/cloud-util/src/main/java/io/ballerina/c2c/util/C2CVisitor.java
index 14fac16..65224f3 100644
--- a/cloud-util/src/main/java/io/ballerina/c2c/util/C2CVisitor.java
+++ b/cloud-util/src/main/java/io/ballerina/c2c/util/C2CVisitor.java
@@ -724,7 +724,7 @@ public class C2CVisitor extends NodeVisitor {
         if (expressionNode.kind() == SyntaxKind.REQUIRED_EXPRESSION) {
             diagnostics.add(C2CDiagnosticCodes
                     .createDiagnostic(C2CDiagnosticCodes.CONFIGURABLE_NO_DEFAULT,
-                            moduleVariableDeclarationNode.location()));
+                            moduleVariableDeclarationNode.location(), variableName));
             return Optional.of(0);
         }
 
diff --git a/compiler-plugin-tests/src/test/java/io/ballerina/c2c/test/CustomDiagnosticsTest.java b/compiler-plugin-tests/src/test/java/io/ballerina/c2c/test/CustomDiagnosticsTest.java
index d7bfe73..9c513e5 100644
--- a/compiler-plugin-tests/src/test/java/io/ballerina/c2c/test/CustomDiagnosticsTest.java
+++ b/compiler-plugin-tests/src/test/java/io/ballerina/c2c/test/CustomDiagnosticsTest.java
@@ -116,8 +116,9 @@ public class CustomDiagnosticsTest {
         Collection<Diagnostic> diagnostics =
                 getC2CDiagnostics(project.currentPackage().getCompilation().diagnosticResult().diagnostics());
         Assert.assertEquals(diagnostics.size(), 1);
-        Assert.assertEquals(diagnostics.iterator().next().message(), "configurables with no default value is not " +
-                "supported");
+        Assert.assertEquals(diagnostics.iterator().next().message(),
+                "default value is not specified for the configurable variable `port`. " +
+                        "cloud artifacts will not be generated for this variable");
     }
 
     @Test