Skip to content

Commit 19af886

Browse files
committed
improve diagnostics
1 parent 2873736 commit 19af886

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ProvidedTypesTesting.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -721,14 +721,14 @@ module internal Targets =
721721
| _ -> failwith (sprintf "unimplemented profile '%s'" profile)
722722

723723
let FSharpCoreRef fsharp profile =
724+
let restoredFSharpCore = fsharpRestoredAssembliesPath fsharp profile
725+
match restoredFSharpCore with
726+
| path when File.Exists restoredFSharpCore -> path
727+
| _ ->
724728
let installedFSharpCore = fsharpCoreFromInstalledAssemblies fsharp profile
725729
match installedFSharpCore with
726730
| Some path when File.Exists path -> path
727731
| _ ->
728-
let restoredFSharpCore = fsharpRestoredAssembliesPath fsharp profile
729-
match restoredFSharpCore with
730-
| path when File.Exists(restoredFSharpCore) -> path
731-
| _ ->
732732
match installedFSharpCore with
733733
| Some path -> failwith ("couldn't find FSharp.Core.dll at either '" + path + "' or '" + restoredFSharpCore + "'")
734734
| None -> failwith ("couldn't find FSharp.Core.dll at '" + restoredFSharpCore + "'")

0 commit comments

Comments
 (0)