[Monodevelop-patches-list] r824 - trunk/MonoDevelop/src/Main/Base/Services/File
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Feb 8 17:46:10 EST 2004
Author: tberman
Date: 2004-02-08 17:46:10 -0500 (Sun, 08 Feb 2004)
New Revision: 824
Modified:
trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs
Log:
yeah, try catch is a good idea
prolly should use message service as well.
Modified: trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs 2004-02-08 22:03:36 UTC (rev 823)
+++ trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs 2004-02-08 22:46:10 UTC (rev 824)
@@ -103,8 +103,9 @@
fileService.RecentOpen.AddLastFile(fileName);
}
} else {
- Gnome.Url.Show ("file://" + fileName);
- //throw new ApplicationException("Can't open " + fileName + ", no display codon found.");
+ try {
+ Gnome.Url.Show ("file://" + fileName);
+ } catch { Console.WriteLine ("Unable to open " + fileName); }
}
}
More information about the Monodevelop-patches-list
mailing list