[parted-devel] [PATCH] Correct a misleading diagnostic.
Jim Meyering
jim at meyering.net
Thu May 31 14:03:23 UTC 2007
We get this diagnostic only if ped_disk_open _succeeds_.
Correct a misleading diagnostic.
* libparted/disk.c (ped_disk_new): Remove always-false "Unable to open"
part of diagnostic. Leave the "unrecognized disk label" part.
Signed-off-by: Jim Meyering <jim at meyering.net>
---
libparted/disk.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libparted/disk.c b/libparted/disk.c
index d23fe15..547d037 100644
--- a/libparted/disk.c
+++ b/libparted/disk.c
@@ -199,7 +199,7 @@ ped_disk_new (PedDevice* dev)
type = ped_disk_probe (dev);
if (!type) {
ped_exception_throw (PED_EXCEPTION_ERROR, PED_EXCEPTION_CANCEL,
- _("Unable to open %s - unrecognised disk label."),
+ _("%s: unrecognised disk label"),
dev->path);
goto error_close_dev;
}
More information about the parted-devel
mailing list