Skip to content

Handle errors in reading/writting from/to persistent setttings#824

Merged
Saviq merged 4 commits intomasterfrom
settings-handle-errors
Jun 10, 2019
Merged

Handle errors in reading/writting from/to persistent setttings#824
Saviq merged 4 commits intomasterfrom
settings-handle-errors

Conversation

@ricab
Copy link
Collaborator

@ricab ricab commented Jun 6, 2019

This improves upon the code that was merged in #805 for #766 . I missed error handling and noticed when working on #776 .

ricab added 4 commits June 6, 2019 17:44
Check for errors when reading/writing persistent settings and throw.
Throw specific exception and catch it in get/set cmds, to report the
error appropriately (without crashing). This organizes settings-related
exceptions in a small "family" and updates includes accordingly.
Copy link
Contributor

@townsend2010 townsend2010 left a comment

Choose a reason for hiding this comment

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

lgtm

bors r+

bors bot added a commit that referenced this pull request Jun 7, 2019
824: Handle errors in reading/writting from/to persistent setttings r=townsend2010 a=ricab

This improves upon the code that was merged in #805 for #766 . I missed error handling and noticed when working on #776 .

Co-authored-by: Ricardo Abreu <ricab@ricabhome.org>
@townsend2010
Copy link
Contributor

Stuck

bors r-

@bors
Copy link
Contributor

bors bot commented Jun 7, 2019

Canceled

@ricab
Copy link
Collaborator Author

ricab commented Jun 9, 2019

bors try

bors bot added a commit that referenced this pull request Jun 9, 2019
@ricab
Copy link
Collaborator Author

ricab commented Jun 9, 2019

It looks like this worked now (even though I still see status cancelled here): https://travis-ci.org/CanonicalLtd/multipass/builds/543448270

bors r=@townsend2010

bors bot added a commit that referenced this pull request Jun 9, 2019
824: Handle errors in reading/writting from/to persistent setttings r=townsend2010 a=ricab

This improves upon the code that was merged in #805 for #766 . I missed error handling and noticed when working on #776 .

Co-authored-by: Ricardo Abreu <ricab@ricabhome.org>
@bors
Copy link
Contributor

bors bot commented Jun 9, 2019

try

Timed out

@bors
Copy link
Contributor

bors bot commented Jun 10, 2019

Timed out

@Saviq
Copy link
Collaborator

Saviq commented Jun 10, 2019

bors try

bors bot added a commit that referenced this pull request Jun 10, 2019
@bors
Copy link
Contributor

bors bot commented Jun 10, 2019

try

Build failed

@Saviq
Copy link
Collaborator

Saviq commented Jun 10, 2019

bors r=townsend2010

bors bot added a commit that referenced this pull request Jun 10, 2019
824: Handle errors in reading/writting from/to persistent setttings r=townsend2010 a=ricab

This improves upon the code that was merged in #805 for #766 . I missed error handling and noticed when working on #776 .

Co-authored-by: Ricardo Abreu <ricab@ricabhome.org>
@bors
Copy link
Contributor

bors bot commented Jun 10, 2019

Build failed

@Saviq
Copy link
Collaborator

Saviq commented Jun 10, 2019

Grrh.

bors r=townsend2010

bors bot added a commit that referenced this pull request Jun 10, 2019
824: Handle errors in reading/writting from/to persistent setttings r=townsend2010 a=ricab

This improves upon the code that was merged in #805 for #766 . I missed error handling and noticed when working on #776 .

Co-authored-by: Ricardo Abreu <ricab@ricabhome.org>
@Saviq
Copy link
Collaborator

Saviq commented Jun 10, 2019

bors r-

Let's try again without codecov…

bors r=townsend2010

@bors
Copy link
Contributor

bors bot commented Jun 10, 2019

Canceled

bors bot added a commit that referenced this pull request Jun 10, 2019
824: Handle errors in reading/writting from/to persistent setttings r=townsend2010 a=ricab

This improves upon the code that was merged in #805 for #766 . I missed error handling and noticed when working on #776 .

Co-authored-by: Ricardo Abreu <ricab@ricabhome.org>
@Saviq Saviq merged commit 8839e87 into master Jun 10, 2019
@bors bors bot deleted the settings-handle-errors branch June 10, 2019 16:11
@bors
Copy link
Contributor

bors bot commented Jun 10, 2019

Build succeeded

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