qualify '$print_project_attributes_exception' call (#857)
This commit is contained in:
@@ -15,7 +15,9 @@ enqueue_goals(Goals0) :-
|
|||||||
enqueue_goals(_).
|
enqueue_goals(_).
|
||||||
|
|
||||||
'$print_project_attributes_exception'(Module, E) :-
|
'$print_project_attributes_exception'(Module, E) :-
|
||||||
( E = error(evaluation_error((Module:project_attributes)/2), project_attributes/2) ->
|
( ( E = error(existence_error(procedure, project_attributes/2), _)
|
||||||
|
; E = error(evaluation_error((Module:project_attributes)/2), _)
|
||||||
|
) ->
|
||||||
true
|
true
|
||||||
; write_term('caught: ', [quoted(false)]),
|
; write_term('caught: ', [quoted(false)]),
|
||||||
writeq(E),
|
writeq(E),
|
||||||
@@ -26,7 +28,7 @@ call_project_attributes([], _, _).
|
|||||||
call_project_attributes([Module|Modules], QueryVars, AttrVars) :-
|
call_project_attributes([Module|Modules], QueryVars, AttrVars) :-
|
||||||
( catch(Module:project_attributes(QueryVars, AttrVars),
|
( catch(Module:project_attributes(QueryVars, AttrVars),
|
||||||
E,
|
E,
|
||||||
'$print_project_attributes_exception'(Module, E)
|
'$project_atts':'$print_project_attributes_exception'(Module, E)
|
||||||
)
|
)
|
||||||
-> true
|
-> true
|
||||||
; true
|
; true
|
||||||
|
|||||||
Reference in New Issue
Block a user