Skip to content

Supports User Errors #228

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

deeptivaidymsft
Copy link
Collaborator

  • PR defines various user and system errors that can be used to provide clarification in the extension substatus
  • Incorporates errors with clarification throughout CSE Linux + tests

dir, err := ioutil.TempDir("", "")
require.Nil(t, err)
dir := os.TempDir()
// require.Nil(t, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be checking for a nil ewc?

@@ -48,7 +48,7 @@ func TestWithRetries_noRetries(t *testing.T) {
sr := new(sleepRecorder)

n, err := download.WithRetries(nopLog(), file, []download.Downloader{d}, sr.Sleep)
require.Nil(t, err, "should not fail")
require.Nil(t, err.Err, "should not fail")
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks strange. If there is no error, then we shouldn't return one. Requiring one to check within the err object seems likely to cause problems.

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