Blender V5.0
error_handling.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#include "error_handling.hh"
6
7#if defined(WITH_OPENCOLORIO)
8
9# include "CLG_log.h"
10
11# include "../opencolorio.hh"
12
13namespace blender::ocio {
14
15static CLG_LogRef LOG = {"color_management"};
16
17void report_exception(const OCIO_NAMESPACE::Exception &exception)
18{
19 CLOG_ERROR(&LOG, "OpenColorIO Error: %s", exception.what());
20}
21
22void report_error(const StringRefNull error)
23{
24 CLOG_ERROR(&LOG, "OpenColorIO Error: %s", error.c_str());
25}
26
27} // namespace blender::ocio
28
29#endif
#define CLOG_ERROR(clg_ref,...)
Definition CLG_log.h:188
#define LOG(level)
Definition log.h:97
static void error(const char *str)