mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-12-22 10:19:48 +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
|
// close zip and write
|
||||||
if (zip_close(zip) < 0) {
|
if (zip_close(zip) < 0) {
|
||||||
zip_error_t ziperror;
|
zip_error_t* ziperror = zip_get_error(zip);
|
||||||
zip_error_init_with_code(&ziperror, errp);
|
return "Failed to write " + OUTPUTFILE + ": " + zip_error_strerror(ziperror);
|
||||||
return "Failed to write " + OUTPUTFILE + ": " + zip_error_strerror(&ziperror);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "Written " << OUTPUTFILE << "\n";
|
std::cout << "Written " << OUTPUTFILE << "\n";
|
||||||
|
|
Loading…
Reference in a new issue