Skip to content

Commit 4851dd5

Browse files
committed
[nrf noup] Check if ZAP file was found
Log error and return if ZAP file was not found Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent 51b36dd commit 4851dd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/west/zap_gui.py

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ def do_run(self, args, unknown_args):
5050
zap_file_path = args.zap_file or find_zap()
5151
zcl_json_path = Path(args.zcl_json).absolute() if args.zcl_json else default_zcl_path
5252

53+
if zap_file_path is None:
54+
log.err("ZAP file not found!")
55+
return
56+
5357
if args.clusters:
5458
# If the user provided the clusters and the zcl.json file provided by -j argument does not exist
5559
# we will create a new zcl.json file according to the base zcl.json file in default_zcl_path.

0 commit comments

Comments
 (0)