Skip to content

Commit

Permalink
Patch to support Fable compiled with Fable
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Mangel committed Aug 18, 2023
1 parent 9aaa9cb commit dacd4bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Fable.Transforms/State.fs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ type Assemblies(getPlugin, fsharpAssemblies: FSharpAssembly list) =
]
|> String.concat "\n"

#if FABLE_COMPILER
eprintfn "%s" errorMessage
#else
Console.ForegroundColor <- ConsoleColor.DarkRed
Console.Error.WriteLine(errorMessage)
Console.ResetColor()
#endif
raise ex

assemblies.Add(path, asm)
Expand Down

0 comments on commit dacd4bb

Please sign in to comment.