显示完整异常

This commit is contained in:
陈国伟 2021-07-30 17:27:24 +08:00
parent f84b9e5af8
commit faf3b4579c
4 changed files with 4 additions and 6 deletions

View File

@ -36,8 +36,7 @@ namespace FastGithub.Dns
{ {
var proess = Process.GetProcessById(pid); var proess = Process.GetProcessById(pid);
proess.Kill(); proess.Kill();
proess.WaitForExit(1000); return proess.WaitForExit(1000);
return true;
} }
catch (ArgumentException) catch (ArgumentException)
{ {

View File

@ -60,7 +60,7 @@ namespace FastGithub.ReverseProxy
} }
else else
{ {
this.logger.LogError($"{message}{Environment.NewLine}{exception.Message}"); this.logger.LogError($"{message}{Environment.NewLine}{exception}");
} }
} }
} }

View File

@ -105,7 +105,7 @@ namespace FastGithub.ReverseProxy
await context.Response.WriteAsJsonAsync(new await context.Response.WriteAsJsonAsync(new
{ {
error = error.ToString(), error = error.ToString(),
message = errorFeature.Exception?.Message message = errorFeature.Exception?.ToString()
}); });
} }
} }

View File

@ -36,8 +36,7 @@ namespace FastGithub.ReverseProxy
{ {
var proess = Process.GetProcessById(pid); var proess = Process.GetProcessById(pid);
proess.Kill(); proess.Kill();
proess.WaitForExit(1000); return proess.WaitForExit(1000);
return true;
} }
catch (ArgumentException) catch (ArgumentException)
{ {