1*3117ece4Schristos /* 2*3117ece4Schristos * Copyright (c) Meta Platforms, Inc. and affiliates. 3*3117ece4Schristos * All rights reserved. 4*3117ece4Schristos * 5*3117ece4Schristos * This source code is licensed under both the BSD-style license (found in the 6*3117ece4Schristos * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7*3117ece4Schristos * in the COPYING file in the root directory of this source tree). 8*3117ece4Schristos * You may select, at your option, one of the above-listed licenses. 9*3117ece4Schristos */ 10*3117ece4Schristos 11*3117ece4Schristos #include "result.h" 12*3117ece4Schristos 13*3117ece4Schristos char const* result_get_error_string(result_t result) { 14*3117ece4Schristos switch (result_get_error(result)) { 15*3117ece4Schristos case result_error_ok: 16*3117ece4Schristos return "okay"; 17*3117ece4Schristos case result_error_skip: 18*3117ece4Schristos return "skip"; 19*3117ece4Schristos case result_error_system_error: 20*3117ece4Schristos return "system error"; 21*3117ece4Schristos case result_error_compression_error: 22*3117ece4Schristos return "compression error"; 23*3117ece4Schristos case result_error_decompression_error: 24*3117ece4Schristos return "decompression error"; 25*3117ece4Schristos case result_error_round_trip_error: 26*3117ece4Schristos return "round trip error"; 27*3117ece4Schristos } 28*3117ece4Schristos } 29