Add the error message while no qemu for mic chroot. 84/305684/1
authorwanchao-xu <wanchao.xu@samsung.com>
Tue, 6 Feb 2024 08:09:47 +0000 (16:09 +0800)
committerwanchao-xu <wanchao.xu@samsung.com>
Tue, 6 Feb 2024 08:11:37 +0000 (16:11 +0800)
Change-Id: Ib2753d3a45d23f63586e158ca307a490060cf40e
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
mic/utils/misc.py

index 17136e71880a18da5cd17c1a8dfcc26c41fe08c4..25c6bb0c2c6725623c151281e70e0ed90a34d0bb 100755 (executable)
@@ -950,7 +950,10 @@ def setup_qemu_emulator(rootdir, arch):
 
     # qemu_emulator is a special case, we can't use find_binary_path
     # qemu emulator should be a statically-linked executable file
-    arm_binary, node = get_qemu_arm_binary(arch)
+    try:
+        arm_binary, node = get_qemu_arm_binary(arch)
+    except CreatorError as err:
+        msger.error(err)
     qemu_emulator = "/usr/bin/%s" % arm_binary
 
     if not os.path.exists(rootdir + "/usr/bin"):