correct error catching in call_verify_attributes/4
This commit is contained in:
@@ -15,8 +15,8 @@ call_verify_attributes(Attrs, _, _, []) :-
|
|||||||
call_verify_attributes([Attr|Attrs], Var, Value, [Goals|ListOfGoalLists]) :-
|
call_verify_attributes([Attr|Attrs], Var, Value, [Goals|ListOfGoalLists]) :-
|
||||||
'$module_of'(M, Attr), % write the owning module Attr to M.
|
'$module_of'(M, Attr), % write the owning module Attr to M.
|
||||||
catch(M:verify_attributes(Var, Value, Goals),
|
catch(M:verify_attributes(Var, Value, Goals),
|
||||||
error(evaluation_error((M:verify_attributes)/3), call_verify_attributes/3),
|
error(evaluation_error((M:verify_attributes)/3), verify_attributes/3),
|
||||||
true),
|
Goals = []),
|
||||||
call_verify_attributes(Attrs, Var, Value, ListOfGoalLists).
|
call_verify_attributes(Attrs, Var, Value, ListOfGoalLists).
|
||||||
|
|
||||||
call_goals([ListOfGoalLists | ListsCubed]) :-
|
call_goals([ListOfGoalLists | ListsCubed]) :-
|
||||||
|
|||||||
Reference in New Issue
Block a user