Simplify the error handling code. Use a different error string for the case where we hit the depth limit.
Attach a file by drag & drop or click to upload