Emit error on non-zero code