return useful information about encountered errors