Return error code if report contains error

Repeat of https://github.com/plumberjs/plumber-cli/pull/3 but based on https://github.com/plumberjs/plumber-cli/pull/8