+-------------------------------------------------------------------
+Tue Mar 19 14:58:12 CET 2024 - aschnell@suse.com
+
+- improved error message (gh#openSUSE/snapper#864)
+
-------------------------------------------------------------------
Sat 9 Mar 09:44:17 GMT 2024 - infinity0@pwned.gg
SN_THROW(IOErrorException("fdopen"));
}
+ errno = 0;
+
if (xmlDocFormatDump(f, doc, 1) == -1)
{
fclose(f);
- SN_THROW(IOErrorException("xmlDocFormatDump failed"));
+ SN_THROW(IOErrorException(sformat("xmlDocFormatDump failed, errno:%d (%s)", errno,
+ stringerror(errno).c_str())));
}
fflush(f);