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 support for user-facing errors to state init #2901

Merged
merged 5 commits into from
Nov 29, 2023

Conversation

MDrakos
Copy link
Member

@MDrakos MDrakos commented Nov 27, 2023

TaskDX-2300 Finish implementing user-facing errors for `state init`.

@github-actions github-actions bot changed the base branch from master to version/0-43-0-RC1 November 27, 2023 23:50
@MDrakos MDrakos requested a review from mitchell-as November 28, 2023 18:53
Copy link
Contributor

@mitchell-as mitchell-as left a comment

Choose a reason for hiding this comment

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

Looks good with one nit.

return locale.NewInputError("err_projectfile_exists")
return &errProjectExists{
error: errs.New("Project file already exists"),
name: params.Namespace.Project,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this really needed since you're passing params.Namespace to rationalizeError()?

@MDrakos MDrakos requested a review from mitchell-as November 29, 2023 17:47
@MDrakos MDrakos merged commit 3388db7 into version/0-43-0-RC1 Nov 29, 2023
6 checks passed
@MDrakos MDrakos deleted the DX-2300 branch November 29, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants