10000 Add error message in case of invalid compression algorithm · postgrespro/pg_probackup@e753643 · GitHub
[go: up one dir, main page]

Skip to content

Commit e753643

Browse files
committed
Add error message in case of invalid compression algorithm
1 parent 4ac0fab commit e753643

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/data.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ do_decompress(void* dst, size_t dst_size, void const* src, size_t src_size,
9898
{
9999
case NONE_COMPRESS:
100100
case NOT_DEFINED_COMPRESS:
101+
if (errormsg)
102+
*errormsg = "Invalid compression algorithm";
101103
return -1;
102104
#ifdef HAVE_LIBZ
103105
case ZLIB_COMPRESS:

0 commit comments

Comments
 (0)
0