From 04291cfcd50034f843a4ff0e721eaf094b486e8a Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Wed, 22 May 2024 12:36:48 +0200 Subject: [PATCH] sd_fusing.py: Improve parameter write error message Change-Id: If42e16e310b1454f190b21d6cd5b662e1f17f598 Signed-off-by: Karol Lewandowski --- sd_fusing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sd_fusing.py b/sd_fusing.py index e5fbbc7..ee380eb 100755 --- a/sd_fusing.py +++ b/sd_fusing.py @@ -211,7 +211,7 @@ class InitParams: stdin=subprocess.DEVNULL, stdout=None, stderr=None) if proc.returncode != 0: - logging.error("Failed to mount {d} in {mnt}") + logging.error(f"Failed to mount {d} in {mnt} (Has the device been initialized with --format?)") return for param, value in self.params: with open(os.path.join(mnt, param), 'w') as f: -- 2.34.1