Skip to content

Commit

Permalink
Added failsafe catch until FCS updates
Browse files Browse the repository at this point in the history
  • Loading branch information
7sharp9 committed Feb 27, 2015
1 parent 645411f commit 089ae53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion monodevelop/MonoDevelop.FSharpBinding/FSharpSymbolHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ module SymbolTooltips =
|> Seq.map Seq.toList
|> Seq.toList

let retType = asType UserType (escapeText(func.ReturnParameter.Type.Format displayContext))
let retType =
try
asType UserType (escapeText(func.ReturnParameter.Type.Format displayContext))
with _ex -> "Unknown"

let padLength =
let allLengths = argInfos |> List.concat |> List.map (fun p -> p.DisplayName.Length)
Expand Down

0 comments on commit 089ae53

Please sign in to comment.