mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-03-26 22:20:10 +02:00
Add error message in case of invalid compression algorithm
This commit is contained in:
parent
4ac0fab61b
commit
e753643b8d
@ -98,6 +98,8 @@ do_decompress(void* dst, size_t dst_size, void const* src, size_t src_size,
|
||||
{
|
||||
case NONE_COMPRESS:
|
||||
case NOT_DEFINED_COMPRESS:
|
||||
if (errormsg)
|
||||
*errormsg = "Invalid compression algorithm";
|
||||
return -1;
|
||||
#ifdef HAVE_LIBZ
|
||||
case ZLIB_COMPRESS:
|
||||
|
Loading…
x
Reference in New Issue
Block a user