Handle errors during monitoring.
This commit is contained in:
parent
08a3d50216
commit
5eb6a7761d
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue