From 98b5085e6ea21099b54fb531ffbffb10df0db468 Mon Sep 17 00:00:00 2001
From: Teo Mrnjavac <teo@kde.org>
Date: Thu, 28 Apr 2016 16:36:46 +0200
Subject: [PATCH] Make sure we print the error message before the finally:
 kicks in.

---
 src/modules/unpackfs/main.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/modules/unpackfs/main.py b/src/modules/unpackfs/main.py
index 2fbcfbee8c..0d7827f846 100644
--- a/src/modules/unpackfs/main.py
+++ b/src/modules/unpackfs/main.py
@@ -169,9 +169,11 @@ class UnpackOperation:
 
                 if entry.sourcefs == "squashfs":
                     if shutil.which("unsquashfs") is None:
+                        msg = ("Failed to find unsquashfs, make sure you have "
+                               "the squashfs-tools package installed")
+                        print(msg)
                         return ("Failed to unpack image",
-                                "Failed to find unsquashfs, make sure you have "
-                                "the squashfs-tools package installed")
+                                msg)
 
                     fslist = subprocess.check_output(["unsquashfs", "-l", entry.source])
 
-- 
GitLab