diff options
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index 07797a10..607044d9 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -219,8 +219,12 @@ namespace Crow Interface.XmlLoaderCount ++; CurrentGOMLPath = path; GraphicObject tmp = null; - using (Stream stream = GetStreamFromPath (path)) { - tmp = Load(stream, GetTopContainerOfXMLStream(stream), hostClass); + try { + using (Stream stream = GetStreamFromPath (path)) { + tmp = Load(stream, GetTopContainerOfXMLStream(stream), hostClass); + } + } catch (Exception ex) { + throw new Exception ("Error loading <" + CurrentGOMLPath + ">:", ex); } Interface.XmlLoaderCount --; |