This change sets the __cause__ attribute to raised exceptions and makes small cleanups in error messages.