summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-06-30 00:51:08 +0200
committerCarl Hetherington <cth@carlh.net>2026-06-30 00:51:08 +0200
commit28d13adf41806bab2370b0765e81290b4bdc6f31 (patch)
tree094feae9909f7f5eae6c69e8ae1ae392dd3a47cf
parentba7c7fcc58a8e13041ae10d41664d0c2500e9789 (diff)
Missing init of error for the non-error case.HEADmaster
-rwxr-xr-xcdist2
1 files changed, 2 insertions, 0 deletions
diff --git a/cdist b/cdist
index e0dea7b..7596940 100755
--- a/cdist
+++ b/cdist
@@ -1256,6 +1256,7 @@ def main():
raise Error('you must specify -t or --target')
target = target_factory(args)
+ error = False
try:
target.build(args.project, args.checkout, get_command_line_options(args), purpose='build')
except Exception as e:
@@ -1270,6 +1271,7 @@ def main():
raise Error('you must specify -t or --target')
target = None
+ error = False
try:
target = target_factory(args)