Created
April 21, 2013 12:22
-
-
Save mtornwall/5429419 to your computer and use it in GitHub Desktop.
simple erlang app start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start_graph(App) -> | |
case application:start(App) of | |
ok -> | |
ok; | |
{error, {already_started, App}} -> | |
ok; | |
{error, {not_started, AppDep}} -> | |
start_graph(AppDep), | |
start_graph(App) % Try again | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment