Comments (6)
Thanks, I might try it later at some point. Also a hint for you, since it's a C++ library, using macros is discouraged. You can offer a std::function
global variable instead or better, some member variable of the libzippp
class so it's not a global change to the code's behavior when getting the error message etc.
from libzippp.
Hi @BullyWiiPlaza,
Without a test case, it will be pretty hard to help you.
By default, it is true that libzippp doesn't provide any details when an open fails. However, you can uncomment this piece of code so you may get some details in the console.
from libzippp.
@ctabin Thanks for the suggestion. However, an exception with the error message text would be more helpful. I cannot simply look at the console when a user runs my GUI software. Maybe you can consider extending your library with something like this so it can be treated/displayed more easily.
from libzippp.
@BullyWiiPlaza I made a slight improvement so you can set a custom handling for errors in this case so you might have more information.
Let me know if this is helpful.
from libzippp.
I completely agree with @BullyWiiPlaza, you could provide an error-handler in the form of
- A callback function
- A virtual class interface, overridable by the user
from libzippp.
Implmented in #156.
from libzippp.
Related Issues (20)
- Issue opening zip file (constructor or .open() call) HOT 3
- Minor: when the zip is aborted the percent is modified to 100% HOT 3
- Set compression method in addData
- ZipArchive::readEntry doesn't handle entries of zero size
- Add the possibility to set the compression level
- setCompressionMethod silently fail when the archive is not yet opened
- Is it possible to incrementally append data to a file already added to an archive? HOT 1
- Memory leak when archive `close` is not successful HOT 2
- ZipArchive::close: zip_close called before saving buffer data. HOT 8
- Modification Time Not Updated for Overwritten Files in Zip Archive
- [macOS] After unzip archive binary file become text file HOT 1
- The install of libzippp.pc is not working HOT 1
- LIBZIPPP_ENABLE_ENCRYPTION does not set LIBZIPPP_WITH_ENCRYPTION in .pc file
- BUG: null pointer dereference after cancelling a `close()` HOT 2
- Issue when closing a zip HOT 3
- Extract have something wrong HOT 4
- Failed to build in Codespace HOT 8
- ZipArchive::addFile needs variant with std::wstring HOT 3
- Archive with encryption causes zip_fopen_index() to fail HOT 2
- Add data files and then delete other entries, abnormal data will appear in the zip archive. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libzippp.