From d5da6e47e14831b865d418faa32f32df4de5af42 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 19 Nov 2020 17:03:49 +0100 Subject: Matrix: fix too long path in event cache, bug when not using error handler.. --- src/Storage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Storage.cpp') diff --git a/src/Storage.cpp b/src/Storage.cpp index dadff5b..c2f62bd 100644 --- a/src/Storage.cpp +++ b/src/Storage.cpp @@ -142,8 +142,10 @@ namespace QuickMedia { static int file_overwrite(const Path &path, const char *str, size_t size) { FILE *file = fopen(path.data.c_str(), "wb"); - if(!file) + if(!file) { + perror(path.data.c_str()); return -1; + } if(fwrite(str, 1, size, file) != size) { fclose(file); -- cgit v1.2.3