[fetcher] no need to keep error message in memory
This commit is contained in:
parent
b1bd01b86a
commit
ced6065c18
|
@ -37,7 +37,6 @@ namespace SparkleLib {
|
||||||
private string TargetFolder;
|
private string TargetFolder;
|
||||||
private string RemoteOriginUrl;
|
private string RemoteOriginUrl;
|
||||||
|
|
||||||
private string Command_Error;
|
|
||||||
|
|
||||||
public SparkleFetcher (string url, string folder)
|
public SparkleFetcher (string url, string folder)
|
||||||
{
|
{
|
||||||
|
@ -80,7 +79,9 @@ namespace SparkleLib {
|
||||||
|
|
||||||
if (process.ExitCode != 0) {
|
if (process.ExitCode != 0) {
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Git", "Error: " + Command_Error);
|
string error = process.StandardError.ReadToEnd ();
|
||||||
|
|
||||||
|
SparkleHelpers.DebugInfo ("Git", "Error: " + error);
|
||||||
SparkleHelpers.DebugInfo ("Git", "[" + TargetFolder + "] Cloning failed");
|
SparkleHelpers.DebugInfo ("Git", "[" + TargetFolder + "] Cloning failed");
|
||||||
|
|
||||||
if (CloningFailed != null)
|
if (CloningFailed != null)
|
||||||
|
@ -101,8 +102,8 @@ namespace SparkleLib {
|
||||||
};
|
};
|
||||||
|
|
||||||
process.Start ();
|
process.Start ();
|
||||||
Command_Error = process.StandardError.ReadToEnd ();
|
|
||||||
process.WaitForExit ();
|
process.WaitForExit ();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue