diff options
| author | Joel Rosdahl <joel@rosdahl.net> | 2022-08-23 18:21:57 +0200 |
|---|---|---|
| committer | Joel Rosdahl <joel@rosdahl.net> | 2022-08-24 19:16:48 +0200 |
| commit | a4ab84f94574a8210373cfc69a7f8e1a7f355dcf (patch) | |
| tree | e0a64d271a624864d00239a93d62144f9523d104 /src/TemporaryFile.cpp | |
| parent | 6727cbee7a6e0d8a70bc9552be1bacb4eca929f1 (diff) | |
| download | ccache-a4ab84f94574a8210373cfc69a7f8e1a7f355dcf.tar.gz | |
refactor: Use FMT macro to format exception messages
Using the FMT macro explicitly makes invalid format message
constructions compile-time errors instead of run-time errors.
Diffstat (limited to 'src/TemporaryFile.cpp')
| -rw-r--r-- | src/TemporaryFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TemporaryFile.cpp b/src/TemporaryFile.cpp index 238dc011..0d7e80bf 100644 --- a/src/TemporaryFile.cpp +++ b/src/TemporaryFile.cpp @@ -51,7 +51,7 @@ TemporaryFile::TemporaryFile(std::string_view path_prefix, #endif if (!fd) { throw core::Fatal( - "Failed to create temporary file for {}: {}", path, strerror(errno)); + FMT("Failed to create temporary file for {}: {}", path, strerror(errno))); } Util::set_cloexec_flag(*fd); |
