aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/cmake/fileapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/cmake/fileapi.py')
-rw-r--r--mesonbuild/cmake/fileapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/cmake/fileapi.py b/mesonbuild/cmake/fileapi.py
index ce63219..6773e9a 100644
--- a/mesonbuild/cmake/fileapi.py
+++ b/mesonbuild/cmake/fileapi.py
@@ -311,7 +311,7 @@ class CMakeFileAPI:
def _reply_file_content(self, filename: Path) -> T.Dict[str, T.Any]:
real_path = self.reply_dir / filename
if not real_path.exists():
- raise CMakeException('File "{}" does not exist'.format(real_path))
+ raise CMakeException(f'File "{real_path}" does not exist')
data = json.loads(real_path.read_text())
assert isinstance(data, dict)