Commit fbcf4b56 authored by Mike Fleetwood's avatar Mike Fleetwood Committed by Curtis Gedak

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
parent e9d73bbf
...@@ -112,7 +112,7 @@ void ntfs::set_used_sectors( Partition & partition ) ...@@ -112,7 +112,7 @@ void ntfs::set_used_sectors( Partition & partition )
if (! output.empty()) if (! output.empty())
partition.push_back_message(output); partition.push_back_message(output);
if (! error.empty()) if (! error.empty())
partition.push_back_message(output); partition.push_back_message(error);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment