DriveSetup: improved error reporting when deleting a partition.

This commit is contained in:
Axel Dörfler
2013-01-24 01:15:26 +01:00
parent 7f33c9cda3
commit f142407b03
+2 -2
View File
@@ -1145,7 +1145,7 @@ MainWindow::_Delete(BDiskDevice* disk, partition_id selectedPartition)
ret = parent->DeleteChild(partition->Index());
if (ret != B_OK) {
_DisplayPartitionError(
B_TRANSLATE("Could not delete the selected partition."));
B_TRANSLATE("Could not delete the selected partition."), NULL, ret);
return;
}
@@ -1153,7 +1153,7 @@ MainWindow::_Delete(BDiskDevice* disk, partition_id selectedPartition)
if (ret != B_OK) {
_DisplayPartitionError(B_TRANSLATE("Failed to delete the partition. "
"No changes have been written to disk."));
"No changes have been written to disk."), NULL, ret);
return;
}