From: Yann Collet Date: Tue, 7 Feb 2023 18:02:09 +0000 (-0800) Subject: add error message for the (rare) compression error scenario X-Git-Tag: v1.5.4^2~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3480%2Fhead;p=thirdparty%2Fzstd.git add error message for the (rare) compression error scenario --- diff --git a/programs/benchzstd.c b/programs/benchzstd.c index e9deeb6fa..a76db5f37 100644 --- a/programs/benchzstd.c +++ b/programs/benchzstd.c @@ -451,7 +451,7 @@ BMK_benchMemAdvancedNoAlloc( BMK_runOutcome_t const cOutcome = BMK_benchTimedFn( timeStateCompress, cbp); if (!BMK_isSuccessful_runOutcome(cOutcome)) { - return BMK_benchOutcome_error(); + RETURN_ERROR(30, BMK_benchOutcome_t, "compression error"); } { BMK_runTime_t const cResult = BMK_extract_runTime(cOutcome);