return useful information about encountered errors

Only generic messages are printed to the screen currently.