Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved display of some error and remove unimplemented! for UnexpectedImageLayout display #2305

Merged
merged 1 commit into from
Aug 26, 2023

Conversation

maoueh
Copy link
Contributor

@maoueh maoueh commented Aug 26, 2023

  1. Update documentation to reflect any user-facing changes - in this repository.

  2. Make sure that the changes are covered by unit-tests. (N/A)

  3. Run cargo fmt on the changes.

  4. Please put changelog entries in the description of this Pull Request

Changelog:

### Additions
- Improved error message display for `AccessError`
- Improved error message display for `CommandBufferExecError`

### Bugs fixed
- Fixed panics when displaying `AccessError::UnexpectedImageLayout`.
  1. Describe in common words what is the purpose of this change, related

It happened to me quite often that I've it some error and the message was lost on display because some Display implementation don't record the cause. Improved some of those that I've spotted while debugging some bad code I had.

Also removed the unimplemented for AccessError::UnexpectedImageLayout and now giving a more descriptive message.

…ectedImageLayout` display

It appeared to me quite often that I've it some error and the message was lost on display because some `Display` implementation don't record the cause. Improved some of those that I've spotted while debugging some bad code I had.

Also removed the `unimplemented` for `AccessError::UnexpectedImageLayout` and now giving a more descriptive message.
@Rua
Copy link
Contributor

Rua commented Aug 26, 2023

Looks good, thank you for the improvements!

@Rua Rua merged commit d1a17f9 into vulkano-rs:master Aug 26, 2023
@maoueh maoueh deleted the feature/improve-future-error-display branch August 28, 2023 14:59
hakolao pushed a commit to hakolao/vulkano that referenced this pull request Feb 20, 2024
…ectedImageLayout` display (vulkano-rs#2305)

It appeared to me quite often that I've it some error and the message was lost on display because some `Display` implementation don't record the cause. Improved some of those that I've spotted while debugging some bad code I had.

Also removed the `unimplemented` for `AccessError::UnexpectedImageLayout` and now giving a more descriptive message.
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