aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/src/DesignInterface.cs
diff options
context:
space:
mode:
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)
{