mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-11-16 18:25:58 +01:00
zip: Properly report error on zip_close (#33)
This commit is contained in:
parent
178717746d
commit
d41e8ac8d1
1 changed files with 2 additions and 3 deletions
|
@ -203,9 +203,8 @@ static std::optional<std::string> createCursorThemeFromPath(const std::string& p
|
|||
|
||||
// close zip and write
|
||||
if (zip_close(zip) < 0) {
|
||||
zip_error_t ziperror;
|
||||
zip_error_init_with_code(&ziperror, errp);
|
||||
return "Failed to write " + OUTPUTFILE + ": " + zip_error_strerror(&ziperror);
|
||||
zip_error_t* ziperror = zip_get_error(zip);
|
||||
return "Failed to write " + OUTPUTFILE + ": " + zip_error_strerror(ziperror);
|
||||
}
|
||||
|
||||
std::cout << "Written " << OUTPUTFILE << "\n";
|
||||
|
|
Loading…
Reference in a new issue