Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Aug 14, 2022
1 parent e3e2a66 commit b0df2a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,10 @@ using namespace libzippp;

int main(int argc, char** argv) {
ZipArchive zf("archive.zip");
zf.setErrorHandlerCallback([](int zip_error_code, int system_error_code) {
zf.setErrorHandlerCallback([](const std::string& message,
int zip_error_code,
int system_error_code)
{
// Handle error here
});

Expand Down

0 comments on commit b0df2a5

Please sign in to comment.