Просмотр исходного кода

Merge pull request #59 from mkshar/master

Fixed loading of .app config files from ETS filesystem.
Namdak Tonpa 8 лет назад
Родитель
Сommit
4a5d658265
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/provision/mad_repl.erl

+ 1 - 1
src/provision/mad_repl.erl

@@ -164,7 +164,7 @@ load_config(A) when is_list(A) ->
     case file:read_file(Name) of
     case file:read_file(Name) of
          {ok,Bin} -> parse(binary_to_list(Bin));
          {ok,Bin} -> parse(binary_to_list(Bin));
          {error,_} -> case ets:lookup(filesystem,AppFile) of
          {error,_} -> case ets:lookup(filesystem,AppFile) of
-                          [{Name,Bin}] -> parse(binary_to_list(Bin));
+                          [{AppFile,Bin}] -> parse(binary_to_list(Bin));
                           _ -> [] end end.
                           _ -> [] end end.
 
 
 parse(String) ->
 parse(String) ->