I've fixed it by exiting with exit code 1 from the "check_unreportable" function that displays the error dialog. See linked branch.
I'm not sure if it's a good idea though, because the function is supposed to check only, not abort the whole thing (isn't it?). I've tried returning false from the "run_report_bug" function that calls "check_unreportable" and then returning false from all the places that call "run_report_bug" but the error handling is still not advanced enough to pick up even those errors and bail out, so I guess I'll quit poking around and leave this to somebody who's familiar with the codebase.
I've fixed it by exiting with exit code 1 from the "check_ unreportable" function that displays the error dialog. See linked branch.
I'm not sure if it's a good idea though, because the function is supposed to check only, not abort the whole thing (isn't it?). I've tried returning false from the "run_report_bug" function that calls "check_ unreportable" and then returning false from all the places that call "run_report_bug" but the error handling is still not advanced enough to pick up even those errors and bail out, so I guess I'll quit poking around and leave this to somebody who's familiar with the codebase.