mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-04-05 17:39:39 -04:00
Handle errors during monitoring.
This commit is contained in:
parent
08a3d50216
commit
5eb6a7761d
@ -344,7 +344,14 @@ namespace Observatory
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user