Merge master to fortuna #530

Merged
zxq9 merged 52 commits from merge_master_to_fortuna into fortuna 2019-03-05 22:51:14 +09:00
Showing only changes of commit 6d6fff2612 - Show all commits

View File

@ -117,9 +117,12 @@ join_errors(Prefix, Errors, Pfun) ->
check_call(Source, "init" = FunName, Args, Options) ->
PatchFun = fun(T) -> {tuple, [typerep, T]} end,
case check_call(Source, FunName, Args, Options, PatchFun) of
{error, _} when Args == [] ->
Err = {error, _} when Args == [] ->
%% Try with default init-function
check_call(insert_init_function(Source, Options), FunName, Args, Options, PatchFun);
case check_call(insert_init_function(Source, Options), FunName, Args, Options, PatchFun) of
{error, _} -> Err; %% The first error is most likely better...
Res -> Res
end;
Res ->
Res
end;