2 * Copyright (c) Meta Platforms, Inc. and affiliates.
5 * This source code is licensed under both the BSD-style license (found in the
6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 * in the COPYING file in the root directory of this source tree).
8 * You may select, at your option, one of the above-listed licenses.
13 char const* result_get_error_string(result_t result) {
14 switch (result_get_error(result)) {
17 case result_error_skip:
19 case result_error_system_error:
20 return "system error";
21 case result_error_compression_error:
22 return "compression error";
23 case result_error_decompression_error:
24 return "decompression error";
25 case result_error_round_trip_error:
26 return "round trip error";