Now, when error occurs somewhere in the print statement, the part of it is still printed until error occurs. Analyze if it is doable to buffer the text until we are sure that no error occurs.