daemon: parted: Print field we are extracting in error message

(cherry picked from commit c8cefa6f0f)
This commit is contained in:
Richard W.M. Jones
2024-03-07 14:17:45 +00:00
parent e9a728bb22
commit 4fdc89fb51

View File

@@ -173,7 +173,7 @@ let sgdisk_info_extract_field device partnum field extractor =
commandr ~fold_stdout_on_stderr:true
"sgdisk" [ device; "-i"; string_of_int partnum ] in
if r <> 0 then
failwithf "sgdisk: %s" err;
failwithf "getting %S: sgdisk: %s" field err;
udev_settle ();