Sometimes errors should be printed to the error stream instead of being returned as an error reply. I.e., in cases when they appear in the library integration and not in the user code. In such cases this method is called to calculate a string representation of them