]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
add error message for the (rare) compression error scenario 3480/head
authorYann Collet <cyan@fb.com>
Tue, 7 Feb 2023 18:02:09 +0000 (10:02 -0800)
committerYann Collet <cyan@fb.com>
Tue, 7 Feb 2023 18:02:09 +0000 (10:02 -0800)
programs/benchzstd.c

index e9deeb6fa7bcec743ba43cf232583e4e103b5688..a76db5f375f028fb95acae85751610511e16dce5 100644 (file)
@@ -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);