]> Repositorios git - scryer-prolog.git/commitdiff
ENHANCED: indicate failed initialization/1 goal
authorMarkus Triska <[email protected]>
Sun, 28 Nov 2021 13:47:25 +0000 (14:47 +0100)
committerMarkus Triska <[email protected]>
Sun, 28 Nov 2021 13:50:42 +0000 (14:50 +0100)
This addresses #1109.

src/loader.pl

index 8ab46bf054acb51b6d593f2c8463761953e4956b..b64b95533a92d1523b4ad571942ac45a34c8c702 100644 (file)
@@ -94,7 +94,10 @@ run_initialization_goals(Module) :-
        abolish(Module:'$initialization_goals'/1),
        (  maplist(Module:call, Goals) ->
           true
-       ;  true %% initialization goals can fail without thwarting the load.
+       ;  %% initialization goals can fail without thwarting the load.
+          write('Warning: initialization/1 failed for: '),
+          writeq(maplist(Module:call, Goals)),
+          nl
        )
     ;  true
     ).