]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Tweak a few error messages in lzma_str_to_filters()
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 20 Jan 2025 14:31:35 +0000 (16:31 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 20 Jan 2025 14:31:35 +0000 (16:31 +0200)
src/liblzma/common/string_conversion.c

index 3a08486a1f62a9d11352f9310bc3a24fdeb4e6a2..1abe153705cc7ab26b82fa76c52c10bf589b144f 100644 (file)
@@ -331,7 +331,7 @@ parse_lzma12_preset(const char **const str, const char *str_end,
                        break;
 
                default:
-                       return "Unsupported preset flag";
+                       return "Unsupported flag in the preset";
                }
        }
 
@@ -696,8 +696,9 @@ parse_options(const char **const str, const char *str_end,
                                if ((optmap[i].flags & OPTMAP_USE_BYTE_SUFFIX)
                                                == 0) {
                                        *str = multiplier_start;
-                                       return "This option does not support "
-                                               "any integer suffixes";
+                                       return "This option does not "
+                                               "support any multiplier "
+                                               "suffixes";
                                }
 
                                uint32_t shift;
@@ -870,7 +871,7 @@ str_to_filters(const char **const str, lzma_filter *filters, uint32_t flags,
 
        if (**str == '\0')
                return "Empty string is not allowed, "
-                               "try \"6\" if a default value is needed";
+                               "try '6' if a default value is needed";
 
        // Detect the type of the string.
        //