aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/src/DesignInterface.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-12-12 19:46:09 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-12-12 19:46:09 +0100
commit590fb1d22d56e1b171865fa9fa80f7d35ec4e26a (patch)
treee3be3d5dbe36e929fc2679e870c92e636a7b58f0 /CrowIDE/src/DesignInterface.cs
parent145a54e95a780e42f8b0c390c4a6ae683b77af6b (diff)
wip
Diffstat (limited to 'CrowIDE/src/DesignInterface.cs')
-rw-r--r--CrowIDE/src/DesignInterface.cs14
1 files changed, 4 insertions, 10 deletions
diff --git a/CrowIDE/src/DesignInterface.cs b/CrowIDE/src/DesignInterface.cs
index 7d9b8ad8..aa82c34d 100644
--- a/CrowIDE/src/DesignInterface.cs
+++ b/CrowIDE/src/DesignInterface.cs
@@ -84,13 +84,9 @@ namespace Crow.Coding
public override GraphicObject Load (string path)
{
ProjectFile pi;
- try {
-
- if (ProjFile.Project.solution.GetProjectFileFromPath (path, out pi))
- return CreateITorFromIMLFragment (pi.Source).CreateInstance();
- } catch (Exception ex) {
-
- }
+
+ if (ProjFile.Project.solution.GetProjectFileFromPath (path, out pi))
+ return CreateITorFromIMLFragment (pi.Source).CreateInstance();
return null;
}
@@ -100,9 +96,7 @@ namespace Crow.Coding
if (ProjFile.Project.solution.GetProjectFileFromPath (path, out pi)) {
return new FileStream (pi.AbsolutePath, FileMode.Open);
}
-
- Console.WriteLine ("File not found: {0}", path);
- return null;
+ throw new Exception ($"In Design File not found: {path}");
}
public override bool ProcessMouseMove (int x, int y)
{