mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-01 00:23:41 -04:00
Handle errors during monitoring.
This commit is contained in:
@ -344,7 +344,14 @@ namespace Observatory
|
|||||||
|
|
||||||
foreach (string line in fileContent.Skip(currentLine[eventArgs.FullPath]))
|
foreach (string line in fileContent.Skip(currentLine[eventArgs.FullPath]))
|
||||||
{
|
{
|
||||||
DeserializeAndInvoke(line);
|
try
|
||||||
|
{
|
||||||
|
DeserializeAndInvoke(line);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
ReportErrors(new List<(Exception ex, string file, string line)>() { (ex, eventArgs.Name, line) });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
currentLine[eventArgs.FullPath] = fileContent.Count;
|
currentLine[eventArgs.FullPath] = fileContent.Count;
|
||||||
|
Reference in New Issue
Block a user