mirror of https://git.tukaani.org/xz.git
liblzma: Tweak a few error messages in lzma_str_to_filters()
This commit is contained in:
parent
da359c360e
commit
f49d7413d9
|
@ -331,7 +331,7 @@ parse_lzma12_preset(const char **const str, const char *str_end,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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)
|
if ((optmap[i].flags & OPTMAP_USE_BYTE_SUFFIX)
|
||||||
== 0) {
|
== 0) {
|
||||||
*str = multiplier_start;
|
*str = multiplier_start;
|
||||||
return "This option does not support "
|
return "This option does not "
|
||||||
"any integer suffixes";
|
"support any multiplier "
|
||||||
|
"suffixes";
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t shift;
|
uint32_t shift;
|
||||||
|
@ -870,7 +871,7 @@ str_to_filters(const char **const str, lzma_filter *filters, uint32_t flags,
|
||||||
|
|
||||||
if (**str == '\0')
|
if (**str == '\0')
|
||||||
return "Empty string is not allowed, "
|
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.
|
// Detect the type of the string.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue