Skip to content

Commit

Permalink
Improve the compiler error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Jul 9, 2021
1 parent 217b919 commit 8b09785
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ defmodule MIDISynth.MixProject do
aliases: [format: ["format", &format_c/1]],
make_targets: ["all"],
make_clean: ["clean"],
make_error_message: make_error_message(),
docs: docs(),
description: description(),
start_permanent: Mix.env() == :prod,
Expand Down Expand Up @@ -95,4 +96,18 @@ defmodule MIDISynth.MixProject do
end

defp format_c(_args), do: true

defp make_error_message() do
"""
This is usually due to not being able to find the fluidsynth library. Try
installing it and then rerun the build to see if that fixes the error.
On OSX, run `brew install fluidsynth`.
On Ubuntu, try `sudo apt install libfluidsynth-dev`
If this does not fix the issue, the C compiler error message right above
this help text may provide a clue.
"""
end
end

0 comments on commit 8b09785

Please sign in to comment.