From b7799bc6dc284f035f46b3f4be7f49f2103b294b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 26 Nov 2023 13:17:16 +0100 Subject: a2 --- anim-crop-tool/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'anim-crop-tool') diff --git a/anim-crop-tool/main.cpp b/anim-crop-tool/main.cpp index 9cd3bcd4..3f314719 100644 --- a/anim-crop-tool/main.cpp +++ b/anim-crop-tool/main.cpp @@ -1,7 +1,7 @@ #include "atlas.hpp" #include "compat/assert.hpp" #include "compat/defs.hpp" -#include "compat/strerror.hpp" +#include "compat/debug.hpp" #include "compat/sysexits.hpp" #include "compat/fix-argv0.hpp" #include "loader/loader.hpp" @@ -271,9 +271,8 @@ int main(int argc, char** argv) : anim_info.object_name; if (auto pathname = Path::join(opts.output_dir, (base_name + ".png")); !atlas.dump(pathname)) { - char errbuf[128]; - auto errstr = get_error_string(errbuf); - ERR_nospace << "error: failed writing image to '" << pathname << "': " << errstr; + auto errstr = error_string(); + ERR << "error: failed writing image to" << quoted(pathname) << colon() << errstr; return EX_CANTCREAT; } anim_info.pixel_size = Vector2ui(atlas.size()); -- cgit v1.2.3