tools/osbuild-image-info: print fstype in error

Print the unrecognised fstype string when failing.
This commit is contained in:
Achilleas Koutsou 2025-01-06 20:05:21 +01:00 committed by Tomáš Hozza
parent 0553465306
commit fc4232af63

View file

@ -2649,7 +2649,7 @@ def append_partitions(report, image):
elif "xfs" in part_fstype:
info = index.get_module_info("Mount", "org.osbuild.xfs")
else:
raise RuntimeError("Unknown file system")
raise RuntimeError(f"Unknown file system: {part_fstype}")
if not info:
raise RuntimeError(f"Can't find org.osbuild.{part_fstype}")