~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.CustomTools/CustomToolService.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
                static ISingleFileCustomTool GetGenerator (ProjectFile file)
81
81
                {
82
82
                        CustomToolExtensionNode node;
83
 
                        if (!string.IsNullOrEmpty (file.Generator) && nodes.TryGetValue (file.Generator, out node))
84
 
                                return node.Tool;
 
83
                        if (!string.IsNullOrEmpty (file.Generator) && nodes.TryGetValue (file.Generator, out node)) {
 
84
                                try {
 
85
                                        return node.Tool;
 
86
                                } catch (Exception ex) {
 
87
                                        LoggingService.LogError ("Error loading generator '" + file.Generator + "'", ex);
 
88
                                        nodes.Remove (file.Generator);
 
89
                                }
 
90
                        }
85
91
                        return null;
86
92
                }
87
93