显示完整异常
This commit is contained in:
parent
f84b9e5af8
commit
faf3b4579c
@ -36,8 +36,7 @@ namespace FastGithub.Dns
|
||||
{
|
||||
var proess = Process.GetProcessById(pid);
|
||||
proess.Kill();
|
||||
proess.WaitForExit(1000);
|
||||
return true;
|
||||
return proess.WaitForExit(1000);
|
||||
}
|
||||
catch (ArgumentException)
|
||||
{
|
||||
|
||||
@ -60,7 +60,7 @@ namespace FastGithub.ReverseProxy
|
||||
}
|
||||
else
|
||||
{
|
||||
this.logger.LogError($"{message}{Environment.NewLine}{exception.Message}");
|
||||
this.logger.LogError($"{message}{Environment.NewLine}{exception}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -105,7 +105,7 @@ namespace FastGithub.ReverseProxy
|
||||
await context.Response.WriteAsJsonAsync(new
|
||||
{
|
||||
error = error.ToString(),
|
||||
message = errorFeature.Exception?.Message
|
||||
message = errorFeature.Exception?.ToString()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -36,8 +36,7 @@ namespace FastGithub.ReverseProxy
|
||||
{
|
||||
var proess = Process.GetProcessById(pid);
|
||||
proess.Kill();
|
||||
proess.WaitForExit(1000);
|
||||
return true;
|
||||
return proess.WaitForExit(1000);
|
||||
}
|
||||
catch (ArgumentException)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user