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

Add more explicit error message when auxiliary storage is saved #8081

Merged
merged 4 commits into from
Oct 7, 2018

Conversation

pblottiere
Copy link
Member

Description

This PR follows the next issue: https://issues.qgis.org/issues/18477.

Actually, sometimes, auxiliary storage is not correctly saved, but I did not succeed in reproducing the error.

Considering that QFile::remove() and QFile::copy() methods seems to be implicated, I propose to add a more explicit error message.

Checklist

  • Commit messages are descriptive and explain the rationale for changes
  • Commits which fix bugs include fixes #11111 in the commit message next to the description
  • Commits which add new features are tagged with [FEATURE] in the commit message
  • Commits which change the UI or existing user workflows are tagged with [needs-docs] in the commit message and contain sufficient information in the commit message to be documented
  • I have read the QGIS Coding Standards and this PR complies with them
  • This PR passes all existing unit tests (test results will be reported by travis-ci after opening this PR)
  • New unit tests have been added for core changes
  • I have run the scripts/prepare-commit.sh script before each commit

bool saveAs( const QString &filename ) const;
QString errorString() const;
%Docstring
Returns the underlying error string when something went wrong.
Copy link
Member

Choose a reason for hiding this comment

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

Would it be worth replacing "something went wrong" with something more explicit (and referencing to the saveAs method)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I updated the documentation accordingly. Let me know if you want me to modify something else or if it's not clear enough.

@nyalldawson nyalldawson added this to the 3.4.0 milestone Oct 2, 2018
@pblottiere
Copy link
Member Author

I'll merge this PR tomorrow if I don't have further remarks.

@nyalldawson
Copy link
Collaborator

Let's merge, looks good and gives more time for the verbose error messages to be collected to hopefully determine the underlying bug before 3.4

@nyalldawson nyalldawson merged commit 9ccb1b5 into qgis:master Oct 7, 2018
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.

3 participants