From eccc25b3739eb8255f5dbe9f1a2ac2313e29bff9 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Sat, 26 Sep 2026 13:12:12 +0200 Subject: [PATCH] log when json file does not exist --- dap/utils/bufjson.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dap/utils/bufjson.py b/dap/utils/bufjson.py index 50d61b4..d986729 100644 --- a/dap/utils/bufjson.py +++ b/dap/utils/bufjson.py @@ -41,10 +41,16 @@ class BufferedJSON: return {} return json_load(self.fname, *args, **kwargs) + def exists(self): if not self.fname: + log.warning("filename not given") return False - return os.path.exists(self.fname) + + res = os.path.exists(self.fname) + if not res: + log.warning(f"{self.fname} does not exist") + return res