mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-04-05 17:39:39 -04:00
include file name in error report
This commit is contained in:
parent
cd28a49647
commit
7bb5a97696
@ -246,7 +246,7 @@ namespace Observatory
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
readErrors.Add((ex, "Pre-read", line));
|
||||
readErrors.Add((ex, file, line));
|
||||
}
|
||||
}
|
||||
return readErrors;
|
||||
@ -279,7 +279,16 @@ namespace Observatory
|
||||
int count = 0;
|
||||
foreach (var error in readErrors)
|
||||
{
|
||||
errorContent.AppendLine(error.ex.InnerException.Message);
|
||||
|
||||
if (error.ex.InnerException == null)
|
||||
{
|
||||
errorContent.AppendLine(error.ex.Message);
|
||||
}
|
||||
else
|
||||
{
|
||||
errorContent.AppendLine(error.ex.InnerException.Message);
|
||||
}
|
||||
|
||||
errorContent.AppendLine($"File: {error.file}");
|
||||
if (error.line.Length > 200)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user