diff --git a/Libraries/LibCompress/GenericZlib.cpp b/Libraries/LibCompress/GenericZlib.cpp index 1ab1d992225..6a49950b894 100644 --- a/Libraries/LibCompress/GenericZlib.cpp +++ b/Libraries/LibCompress/GenericZlib.cpp @@ -15,6 +15,9 @@ static Error handle_zlib_error(int ret) switch (ret) { case Z_ERRNO: return Error::from_errno(errno); + case Z_NEED_DICT: + // Z_NEED_DICT if the input data needed a dictionary + return Error::from_string_literal("zlib data needs dictionary"); case Z_DATA_ERROR: // Z_DATA_ERROR if the input data was corrupted return Error::from_string_literal("zlib data error");