SetPartFlagsJob should return error when it is unable to find partition.
This commit is contained in:
parent
89a5308686
commit
a6415561ae
|
@ -83,8 +83,10 @@ bool SetPartFlagsJob::run(Report& parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
delete backendPartition;
|
delete backendPartition;
|
||||||
} else
|
} else {
|
||||||
report->line() << xi18nc("@info:progress", "Could not find partition <filename>%1</filename> on device <filename>%2</filename> to set partition flags.", partition().deviceNode(), device().deviceNode());
|
report->line() << xi18nc("@info:progress", "Could not find partition <filename>%1</filename> on device <filename>%2</filename> to set partition flags.", partition().deviceNode(), device().deviceNode());
|
||||||
|
rval = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (rval)
|
if (rval)
|
||||||
backendPartitionTable->commit();
|
backendPartitionTable->commit();
|
||||||
|
|
Loading…
Reference in New Issue