1
0
mirror of https://github.com/UzixLS/migresia.git synced 2025-07-18 23:01:21 +03:00

Whoops; adding the handling of an app already being loaded.

This commit is contained in:
Christopher Phillips
2013-11-21 09:50:21 -05:00
parent 36ed822453
commit 7a60739ac5

View File

@ -37,6 +37,7 @@ list_unapplied_ups(App) ->
get_priv_dir(App) ->
case application:load(App) of
ok -> filename:join(code:priv_dir(App), ?DIR);
{error, {already_loaded, App}} -> filename:join(code:priv_dir(App), ?DIR);
Error -> Error
end.