-
Notifications
You must be signed in to change notification settings - Fork 293
Add more details to FileManager error report #1895
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
Merged
MrStevns
merged 28 commits into
pencil2d:master
from
MrStevns:improvement/saving-error-handling
Nov 30, 2024
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
741a56d
Fix case where saving with no undo changes would fail
MrStevns 0d9bf8a
QMiniz: Simplify logic
MrStevns 871ccc9
QMiniz: Make sure to abort when failing to compress file
MrStevns 33115d4
Improve the error detail log for readability
MrStevns 466f6be
ErrorDialog: Add copy to clipboard
MrStevns 335d88d
Improve error details for readability - take 2
MrStevns 422cce5
Improve error details for readability - take 3
MrStevns 8b705f8
Write a note when a backup has been made
MrStevns 30397b2
FileManager: Fix logic does not account for existing backup files
MrStevns e106ac5
Improve layer saving diagnostics
MrStevns 93fd589
Fix where where project couldn't be saved because miniz tried to zip …
MrStevns fb0b24e
Improve diagnostics around qminiz and archiving
MrStevns afa857f
Add text explaining the importance of the bug report
MrStevns 05b0381
Add missing space
MrStevns dcd70c5
QMiniz: make sure to always close reader
MrStevns 09deac9
Layer: Add error diagnostics when failing to save one or more layers
MrStevns 66034b3
FileManager:writeMainXML: Slightly safer way to close file
MrStevns 566ae76
QMiniz: Make errors more explicit and fail quickly.
MrStevns 33eed04
Add error keyword to writePalette
MrStevns b511d5d
FileManager: close file after recovery.
MrStevns 93e8213
Remove indentation
MrStevns 8480697
FileManager: Check for Unzipping errors
MrStevns 3447d67
QMiniz: Fix typo...
MrStevns d4bdc23
Add missing QFile::close where a file has been opened.
MrStevns 87007c5
ErrorDialog: shorten description
MrStevns 85b43e6
QMiniz: Only close if we succeded to open it
MrStevns 685f96f
Remove explicit file.close because QFile already handles this
MrStevns 055dd7f
Fix relative include path
MrStevns File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OnScopeExit(delete mz);There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I knew about OnScopeExit when I made this change, I just prefer using ScopeGuard directly rather than a macro