summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--scripts/minikconf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/minikconf.py b/scripts/minikconf.py
index 2a4694fb6a..4de5aeed11 100644
--- a/scripts/minikconf.py
+++ b/scripts/minikconf.py
@@ -363,7 +363,9 @@ class KconfigParser:
 
     def do_assignment(self, var, val):
         if not var.startswith("CONFIG_"):
-            raise Error('assigned variable should start with CONFIG_')
+            raise KconfigParserError(
+                self, "assigned variable should start with CONFIG_"
+            )
         var = self.data.do_var(var[7:])
         self.data.do_assignment(var, val)