mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Fix empty error message
This commit is contained in:
parent
a267ef856e
commit
415ad2c506
1 changed files with 4 additions and 1 deletions
|
@ -221,8 +221,11 @@ ResizePartitionJob::exec()
|
||||||
QScopedPointer<CoreBackendDevice> backendDevice( backend->openDevice( m_device->deviceNode() ) );
|
QScopedPointer<CoreBackendDevice> backendDevice( backend->openDevice( m_device->deviceNode() ) );
|
||||||
if ( !backendDevice.data() )
|
if ( !backendDevice.data() )
|
||||||
{
|
{
|
||||||
|
QString errorMessage = tr( "The installer failed to resize partition %1 on disk '%2'." )
|
||||||
|
.arg( m_partition->partitionPath() )
|
||||||
|
.arg( m_device->name() );
|
||||||
return Calamares::JobResult::error(
|
return Calamares::JobResult::error(
|
||||||
QString(),
|
errorMessage,
|
||||||
tr( "Could not open device '%1'." ).arg( m_device->deviceNode() )
|
tr( "Could not open device '%1'." ).arg( m_device->deviceNode() )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue