[diffoscope] 02/05: Display a better error message when guestfs can't be started

Jérémy Bobbio lunar at moszumanska.debian.org
Tue Dec 15 17:21:29 CET 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository diffoscope.

commit a5619d3343b1bb7ae531cc44931db304271cb7e1
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Tue Dec 15 14:07:04 2015 +0000

    Display a better error message when guestfs can't be started
---
 diffoscope/comparators/fsimage.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/diffoscope/comparators/fsimage.py b/diffoscope/comparators/fsimage.py
index 3dfeffa..8bcd236 100644
--- a/diffoscope/comparators/fsimage.py
+++ b/diffoscope/comparators/fsimage.py
@@ -39,7 +39,8 @@ class FsImageContainer(Archive):
         try:
             self.g.launch()
         except RuntimeError:
-            logger.debug("guestfs can't be launched")
+            logger.exception("guestfs can't be launched")
+            logger.error("If memory is too tight for 512 MiB, try running with LIBGUESTFS_MEMSIZE=256 or lower.")
             return None
         devices = self.g.list_devices()
         self.g.mount(devices[0], "/")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list