Преглед изворни кода

Fix failure message formatting in toolchain loading

default_compile_flags
vector-of-bool пре 6 година
родитељ
комит
6b0d83d628
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      src/dds/toolchain/from_dds.cpp

+ 2
- 2
src/dds/toolchain/from_dds.cpp Прегледај датотеку



template <typename... Args> template <typename... Args>
[[noreturn]] void fail(strv context, strv message, Args&&... args) { [[noreturn]] void fail(strv context, strv message, Args&&... args) {
throw std::runtime_error(
format("{} - Failed to read toolchain file: {}", context, message, args...));
auto fmtd = format(message, args...);
throw std::runtime_error(format("{} - Failed to read toolchain file: {}", context, fmtd));
} }
} // namespace } // namespace



Loading…
Откажи
Сачувај