Blender V5.3
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#include "CLG_log.h"
8
9#include "../opencolorio.hh"
10
11namespace blender::ocio {
12
13static CLG_LogRef LOG = {"color_management"};
14
15void report_exception(const OCIO_NAMESPACE::Exception &exception)
16{
17 CLOG_ERROR(&LOG, "OpenColorIO Error: %s", exception.what());
18}
19
20void report_error(const StringRefNull error)
21{
22 CLOG_ERROR(&LOG, "OpenColorIO Error: %s", error.c_str());
23}
24
25} // namespace blender::ocio
#define CLOG_ERROR(clg_ref,...)
Definition CLG_log.h:188
constexpr const char * c_str() const
static CLG_LogRef LOG
void report_exception(const OCIO_NAMESPACE::Exception &exception)
void report_error(const StringRefNull error)