liblzma: Tweak a few error messages in lzma_str_to_filters()

This commit is contained in:
Lasse Collin 2025-01-20 16:31:35 +02:00
parent da359c360e
commit f49d7413d9
No known key found for this signature in database
GPG Key ID: 38EE757D69184620
1 changed files with 5 additions and 4 deletions

View 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.
//