Proper Error Message Missing When Appending Corrupted File During Document Merge

While running the document merge and appending individual attachments for a record, I found that the files are corrupted. This leads to the merge action not completing at all. However, no error was shown to indicate this issue. It would be useful to receive a proper error message in such cases.