Just return an error from the error targets map function, rather than erroring the buffer_head.
Attach a file by drag & drop or click to upload