apache / apache/openwhisk-wskdeploy

Create named UnspecifiedError for misc. errors

Open
#691 0 comments 0 reactions 1 assignee Claimed by @mrutkows View on GitHub
enhancement priority: medium
Dominant language
Go
Stars
75
Forks
73
PR merge metrics
No merged PRs in 30d

Description

Use for error cases that are not typical occurrences. This will allow consistent formatting of all wskdeploy errors and avoid in-line error strings where possible.

This would be used wherever we use the generic constructor:
```
errors.New()
```

Such as in filesystemreader. go:
```
return "", nil, errors.New("Unsupported action type.")

return errors.New("Conflict detected for action named " + existAction.Action.Name + ". Found two locations for source file: " + existAction.Filepath + " and " + fileAction.Filepath)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.