Raise exception when ir_attachment creation fails

Currently, report creation failures are silent except for a message in the logs. We propose, with this pull request, to explicitely raise them to the user.