live: improve part not found log in image_create

Report the partition number of the missing partition.
master
Alejandro Sirgo Rica 2024-10-07 12:10:36 +02:00
parent f942b19eae
commit 97c836e0e4
1 changed files with 1 additions and 1 deletions

View File

@ -629,7 +629,7 @@ class OgLiveOperations:
if pa is None:
self._restartBrowser(self._url)
raise OgError(f'Target partition /dev/{diskname} not found')
raise OgError(f'Target partition {partition} not found in /dev/{diskname}')
padev = cxt.partition_to_string(pa, fdisk.FDISK_FIELD_DEVICE)
fstype = cxt.partition_to_string(pa, fdisk.FDISK_FIELD_FSTYPE)