From 3cd59df400c03b4954619c840dfffe40fc70bed9 Mon Sep 17 00:00:00 2001 From: yura Date: Sat, 25 Nov 2006 18:38:47 +0000 Subject: [PATCH] bit more nice error messages --- ntfsprogs/ntfsinfo.c | 3 +-- ntfsprogs/utils.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ntfsprogs/ntfsinfo.c b/ntfsprogs/ntfsinfo.c index d8754524..91e34f0a 100644 --- a/ntfsprogs/ntfsinfo.c +++ b/ntfsprogs/ntfsinfo.c @@ -2206,8 +2206,7 @@ int main(int argc, char **argv) vol = utils_mount_volume(opts.device, NTFS_MNT_RDONLY, opts.force); if (!vol) { - printf("Failed to open '%s': %s\n", opts.device, - strerror(errno)); + printf("Failed to open '%s'.\n", opts.device); exit(1); } diff --git a/ntfsprogs/utils.c b/ntfsprogs/utils.c index 978fbc5e..8ae69a7d 100644 --- a/ntfsprogs/utils.c +++ b/ntfsprogs/utils.c @@ -96,7 +96,7 @@ static const char *hibernated_volume_msg = "off properly, so mounting could be done safely.\n"; static const char *unclean_journal_msg = -"Mount is denied because the NTFS journal file is unclean. Choices are:\n" +"Access is denied because the NTFS journal file is unclean. Choices are:\n" " A) Shutdown Windows properly.\n" " B) Click the 'Safely Remove Hardware' icon in the Windows taskbar\n" " notification area before disconnecting the device.\n" @@ -108,7 +108,7 @@ static const char *unclean_journal_msg = " F) ntfsmount: Mount the volume read-only by using the 'ro' mount option.\n"; static const char *opened_volume_msg = -"Mount is denied because the NTFS volume is already exclusively opened.\n" +"Access is denied because the NTFS volume is already exclusively opened.\n" "The volume may be already mounted, or another software may use it which\n" "could be identified for example by the help of the 'fuser' command.\n";