Skip to content

Improve image load error messages#632

Merged
solidpixel merged 2 commits into
mainfrom
issue_629
Jun 2, 2026
Merged

Improve image load error messages#632
solidpixel merged 2 commits into
mainfrom
issue_629

Conversation

@solidpixel
Copy link
Copy Markdown
Contributor

@solidpixel solidpixel commented Jun 2, 2026

Ensure all image_load error messages use print_error and follow a standard wording convention.

Fixes #629

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes image load/store error reporting to use print_error() (stderr) and aligns several messages to a more consistent, format-specific wording convention across the CLI image loaders.

Changes:

  • Updated TinyEXR/STB/Wuffs image-load failure messages to a consistent "ERROR: ... failed 'file'" style.
  • Switched .ktx and .dds loader failures from printf (stdout) to print_error (stderr) and updated message wording.
  • Updated changelog to reflect stderr reporting improvements for .dds/.ktx failures.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
Source/astcenccli_image_load_store.cpp Standardizes error output to stderr and revises wording across EXR/STB/KTX/DDS/ASTC loaders.
Source/astcenccli_image_external.cpp Aligns Wuffs-related error wording and file-open failures to the new convention.
Docs/ChangeLog-5x.md Documents stderr reporting fix for .dds and .ktx load errors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Source/astcenccli_image_load_store.cpp Outdated
Comment thread Source/astcenccli_image_load_store.cpp
@solidpixel solidpixel merged commit bd52ed8 into main Jun 2, 2026
9 checks passed
@solidpixel solidpixel deleted the issue_629 branch June 2, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error messages for KTX and DDS image loading do not use print_error() and need cleaning up

2 participants