error and warning messages
The messages from the Prolog interpreter when your program
goes wrong can be difficult for a beginner to interpret. Little
can be said in general, as the messages vary from system to
system. You can find a guide for some of the messages produced
by SWI Prolog here.
See also underscore variables,