summaryrefslogtreecommitdiff
path: root/zip/zip.cpp
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2024-10-25 20:04:09 +0200
committerTomas Bzatek <tbzatek@redhat.com>2024-10-25 20:06:41 +0200
commit03f0a6cd93da2a10f7be8f9616fe807a6c41d8c8 (patch)
tree3d56e175263811f4581db0a026f10d204877a3d7 /zip/zip.cpp
parentd1b057c4e3b865dc511cd2b5b591371303323272 (diff)
downloadtuxcmd-modules-03f0a6cd93da2a10f7be8f9616fe807a6c41d8c8.tar.xz
zip: Handle additional error codes
Diffstat (limited to 'zip/zip.cpp')
-rw-r--r--zip/zip.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/zip/zip.cpp b/zip/zip.cpp
index c6db221..4ccf693 100644
--- a/zip/zip.cpp
+++ b/zip/zip.cpp
@@ -133,7 +133,12 @@ zip_error_to_gerror (CZipException e, GError **error)
// case CZipException::bzUnexpectedEof: return cVFS_ReadErr; // Bzlib library error.
// case CZipException::bzOutbuffFull: return cVFS_ReadErr; // Bzlib library error.
// case CZipException::bzConfigError: return cVFS_ReadErr; // Bzlib library error.
-// case CZipException::bzInternalError: return cVFS_ReadErr; // Internal Bzlib library error.
+// case CZipException::bzInternalError: return cVFS_ReadErr; // Internal Bzlib library error.
+
+ /* 1 - 199 reserved for errno (from STL) values - used only in non-MFC versions */
+ case 1 ... 199:
+ code = g_io_error_from_errno (e.m_iCause);
+ break;
default:
code = G_IO_ERROR_FAILED;
break;