aboutsummaryrefslogtreecommitdiff
path: root/src/Storage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Storage.cpp')
-rw-r--r--src/Storage.cpp4
1 files changed, 3 insertions, 1 deletions
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);