Display failure from wipefs as an error not a warning (#688882)
When wipefs command fails this means that in the display of the operation results tree: 1) The command is displayed with a time and a stop sign, rather than no time and a warning sign; 2) There is no report of any warnings or failures at the top level summary. (The immedately following "clear primary signatures" step will clear all the file system signatures which wipefs failed to do. Should this fail too it will report errors which will fail the whole operation). Bug #688882 - Improve clearing of file system signatures
This commit is contained in:
parent
7a75148a7b
commit
b2b51ad424
|
@ -3264,7 +3264,7 @@ bool GParted_Core::wipe_filesystem_signatures( const Glib::ustring & path,
|
|||
if ( ! error .empty() )
|
||||
operationdetail .get_last_child() .add_child( OperationDetail( error, STATUS_NONE, FONT_ITALIC ) ) ;
|
||||
success = ( 0 == exit_status ) ;
|
||||
operationdetail .get_last_child() .set_status( success ? STATUS_SUCCES : STATUS_N_A ) ;
|
||||
operationdetail .get_last_child() .set_status( success ? STATUS_SUCCES : STATUS_ERROR ) ;
|
||||
|
||||
return success ;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue