Report errors correctly on failure to read NTFS usage (#57)

GParted uses ntfsinfo to read the NTFS file system usage.  However when
ntfsinfo fails with a non-zero exit status GParted reports stdout twice,
rather than stdout and stderr.  Correct this.

Closes #57 - NTFS Resize results in Partition Information Warning on
             Refresh
This commit is contained in:
Mike Fleetwood 2019-05-24 12:29:37 +01:00 committed by Curtis Gedak
parent e9d73bbf1c
commit fbcf4b56bb
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ void ntfs::set_used_sectors( Partition & partition )
if (! output.empty())
partition.push_back_message(output);
if (! error.empty())
partition.push_back_message(output);
partition.push_back_message(error);
return;
}