/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include #include namespace facebook { namespace glean { namespace rts { [[noreturn]] void raiseError(const std::string& msg); template [[noreturn]] inline std::string error(folly::StringPiece fmt, Args&&... args) { raiseError(folly::sformat(fmt, std::forward(args)...)); } } // namespace rts } // namespace glean } // namespace facebook