Skip to content

Report which LoadData stage failed instead of failing silently#306

Open
TetzkatLipHoka wants to merge 1 commit into
remobjects:masterfrom
TetzkatLipHoka:fix/loaddata-error-messages
Open

Report which LoadData stage failed instead of failing silently#306
TetzkatLipHoka wants to merge 1 commit into
remobjects:masterfrom
TetzkatLipHoka:fix/loaddata-error-messages

Conversation

@TetzkatLipHoka

Copy link
Copy Markdown

Several failure paths inside LoadTypes/LoadProcs/LoadVars only return
False without calling CMD_Err. LoadData then cleared the instance and
returned False with ExceptionCode still erNoError, so hosts printing
TIFErrorToString(ExceptionCode, ExceptionString) showed 'No Error' for
a failed load.

Each stage now reports a stage-specific erCustomError - but only when
no more specific error is pending (ExEx = erNoError), so existing
detailed errors like 'Out Of Range' or 'Unexpected End Of File' are
preserved.

🤖 Generated with Claude Code

Several failure paths inside LoadTypes/LoadProcs/LoadVars only return
False without calling CMD_Err. LoadData then cleared the instance and
returned False with ExceptionCode still erNoError, so hosts printing
TIFErrorToString(ExceptionCode, ExceptionString) showed 'No Error' for
a failed load.

Each stage now reports a stage-specific erCustomError - but only when
no more specific error is pending (ExEx = erNoError), so existing
detailed errors like 'Out Of Range' or 'Unexpected End Of File' are
preserved.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant