SetPartFlagsJob should return error when it is unable to find partition.

This commit is contained in:
Andrius Štikonas 2017-11-07 03:07:51 +00:00
parent 89a5308686
commit a6415561ae
1 changed files with 3 additions and 1 deletions

View File

@ -83,8 +83,10 @@ bool SetPartFlagsJob::run(Report& parent)
}
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());
rval = false;
}
if (rval)
backendPartitionTable->commit();