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:
@ -343,9 +343,16 @@ namespace Observatory
|
||||
}
|
||||
|
||||
foreach (string line in fileContent.Skip(currentLine[eventArgs.FullPath]))
|
||||
{
|
||||
try
|
||||
{
|
||||
DeserializeAndInvoke(line);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ReportErrors(new List<(Exception ex, string file, string line)>() { (ex, eventArgs.Name, line) });
|
||||
}
|
||||
}
|
||||
|
||||
currentLine[eventArgs.FullPath] = fileContent.Count;
|
||||
}
|
||||
|
Reference in New Issue
Block a user