Browse Source

Fix failure message formatting in toolchain loading

default_compile_flags
vector-of-bool 5 years ago
parent
commit
6b0d83d628
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/dds/toolchain/from_dds.cpp

+ 2
- 2
src/dds/toolchain/from_dds.cpp View File



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…
Cancel
Save