Browse Source

Handle DirectoryNotFoundException and other IOExceptions in AssemblyParserService.GetAssemblyModelSafe().

pull/567/head
Daniel Grunwald 11 years ago
parent
commit
2b83e7b0b3
  1. 2
      src/Main/SharpDevelop/Parser/AssemblyParserService.cs

2
src/Main/SharpDevelop/Parser/AssemblyParserService.cs

@ -391,7 +391,7 @@ namespace ICSharpCode.SharpDevelop.Parser @@ -391,7 +391,7 @@ namespace ICSharpCode.SharpDevelop.Parser
return GetAssemblyModel(fileName, includeInternalMembers);
} catch (BadImageFormatException) {
SD.MessageService.ShowWarningFormatted("${res:ICSharpCode.SharpDevelop.Dom.AssemblyInvalid}", Path.GetFileName(fileName));
} catch (FileNotFoundException) {
} catch (IOException) {
SD.MessageService.ShowWarningFormatted("${res:ICSharpCode.SharpDevelop.Dom.AssemblyNotAccessible}", fileName);
}

Loading…
Cancel
Save