diff options
Diffstat (limited to 'anim-crop-tool')
-rw-r--r-- | anim-crop-tool/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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()); |