From 7566221eff446eb00a294ddaf1e487e8f9077b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Thu, 10 Jul 2014 14:46:35 +0200 Subject: [PATCH] Nicer error messages on failure --- src/modules/partition/CreatePartitionJob.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/partition/CreatePartitionJob.cpp b/src/modules/partition/CreatePartitionJob.cpp index 672dcd3f2..0f18323ad 100644 --- a/src/modules/partition/CreatePartitionJob.cpp +++ b/src/modules/partition/CreatePartitionJob.cpp @@ -63,7 +63,7 @@ CreatePartitionJob::exec() if ( partitionPath.isEmpty() ) { return Calamares::JobResult::error( - tr( "Failed to create partition" ), + tr( "The installer failed to create partition on %1." ).arg( m_device->name() ), report.toText() ); } @@ -78,7 +78,7 @@ CreatePartitionJob::exec() if ( !fs.create( report, partitionPath ) ) { return Calamares::JobResult::error( - tr( "Failed to create system" ), + tr( "The installer failed to create file system on partition %1." ).arg( partitionPath ), report.toText() ); } @@ -86,7 +86,7 @@ CreatePartitionJob::exec() if ( !backendPartitionTable->setPartitionSystemType( report, *m_partition ) ) { return Calamares::JobResult::error( - tr( "Failed to update partition table" ), + tr( "The installer failed to update partition table on %1." ).arg( m_device->name() ), report.toText() ); }