ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/XMLTV_LOADER.cs
(Generate patch)

Comparing trunk/libxmltv/Core/XMLTV_LOADER.cs (file contents):
Revision 20 by william, Thu Mar 7 10:00:40 2013 UTC vs.
Revision 21 by william, Thu Mar 7 10:04:58 2013 UTC

# Line 58 | Line 58 | namespace libxmltv.Core
58          {
59              XMLTV_LOGGER.Log.Info.WriteLine("Loading XMLTV File: {0}", XmlFile.Name);
60              //XMLTV_LOGGER.Log.Warn.WriteLine("XML File Loading has not been implemented yet!");
61 <            XDocument doc = XDocument.Load(XmlFile.FullName);
61 >            try
62 >            {
63 >                XDocument doc = XDocument.Load(XmlFile.FullName);
64 >            }
65 >            catch (Exception ex)
66 >            {
67 >                XMLTV_LOGGER.Log.Error.WriteLine("Failed to load XMLTV File: {0}", XmlFile.Name);
68 >                XMLTV_LOGGER.Log.Error.WriteLine(ex.GetBaseException().ToString());
69 >            }
70          }
71      }
72   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines