jglisson / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

XmlFileErrorLog.GetError throws FileNotFoundException when error is not found #207

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.4952
Type "help", "copyright", "credits" or "license" for more information.
>>> import clr
>>> clr.AddReference('Elmah')
>>> from Elmah import *
>>> from System import Guid
>>> from Elmah import *
>>> log = XmlFileErrorLog({'logPath':r'C:\temp'})
>>> e = log.GetError(Guid.Empty.ToString())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 2] Cannot locate error file for error with ID 
00000000-0000-0000-0000-000000000000.

What is the expected output? What do you see instead?

Expected XmlFileErrorLog.GetError to return a null reference, like all other 
error log implementations do. Instead it throws an exception of type 
FileNotFoundException.

Additional information:

- ELMAH 1.2 BETA

Original issue reported on code.google.com by azizatif on 16 Feb 2011 at 10:05

GoogleCodeExporter commented 8 years ago
Fixed in r792.

Original comment by azizatif on 16 Feb 2011 at 10:08