]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- improved error logging 773/head
authorArvin Schnell <aschnell@suse.de>
Mon, 23 Jan 2023 09:19:00 +0000 (10:19 +0100)
committerArvin Schnell <aschnell@suse.de>
Mon, 23 Jan 2023 09:19:00 +0000 (10:19 +0100)
snapper/Comparison.cc
snapper/Snapshot.cc

index ef3a273ac34d8c41039182be2e75a4b01a76494d..986a389e469228d67cd5b114655447c7bbe7c39c 100644 (file)
@@ -337,7 +337,7 @@ namespace snapper
 
        int fd = info_dir.mktemp(tmp_name);
        if (fd < -1)
-           SN_THROW(IOErrorException(sformat("mkstemp failed errno:%d (%s)", errno,
+           SN_THROW(IOErrorException(sformat("SDir::mktemp failed errno:%d (%s)", errno,
                                              stringerror(errno).c_str())));
 
        try
index 1974bbaca6d1554ec34e44adc5f090609865b2d8..6505c46ad67a22caf4d72e994ba2dd49607986dc 100644 (file)
@@ -505,7 +505,8 @@ namespace snapper
 
        int fd = info_dir.mktemp(tmp_name);
        if (fd < 0)
-           SN_THROW(IOErrorException("mktemp failed"));
+           SN_THROW(IOErrorException(sformat("SDir::mktemp failed, errno:%d (%s)", errno,
+                                             stringerror(errno).c_str())));
 
        try
        {