Skip to content

Improving error handling#169

Merged
thomaslaurenson merged 1 commit into
thegraydot:mainfrom
sjoblomj:error-handling
Jun 6, 2026
Merged

Improving error handling#169
thomaslaurenson merged 1 commit into
thegraydot:mainfrom
sjoblomj:error-handling

Conversation

@sjoblomj

@sjoblomj sjoblomj commented Jun 5, 2026

Copy link
Copy Markdown
Contributor
  • More descriptive error messages, by explaining StormLib error codes
  • not closing archives in mpq.cpp, since that is already done in commands.cpp
  • not printing "Failed to open MPQ archive" when OpenMpqArchive fails - the function already prints that.

…-closing archives, not printing the same errors twice

@thomaslaurenson thomaslaurenson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is another great PR. Some nice cleanup of some bad old code (the duplicate error message), and some great new functionality (the error checking using Stormlib errors). Happy to merge as is.

@thomaslaurenson thomaslaurenson merged commit ed43b57 into thegraydot:main Jun 6, 2026
12 checks passed
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.

2 participants