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

fix(engine): dropped api error #6445

Merged
merged 1 commit into from
Feb 9, 2023
Merged

fix(engine): dropped api error #6445

merged 1 commit into from
Feb 9, 2023

Conversation

alrs
Copy link
Contributor

@alrs alrs commented Feb 7, 2023

This fixes a dropped err variable in the engine/api package.

@ovh/cds

Copy link
Member

@richardlt richardlt left a comment

Choose a reason for hiding this comment

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

We want to return an error that will give more info to the client. Returning only err will result in an HTTP 500 response.

engine/api/v2_project.go Outdated Show resolved Hide resolved
Signed-off-by: Lars Lehtonen <[email protected]>
@ovh-cds
Copy link
Collaborator

ovh-cds commented Feb 9, 2023

CDS Report build-all-cds#18505.0 ✘

  • Build
    • Build and Package All ✔
    • Build Debpacker ✔
    • Build OS-Ansible-Inventory ✔
    • Build SMTPMock ✔
    • Lint UI Translate ✔
    • Test CLI ✔
    • Test Engine ✘
    • Test SDK ✔
    • Test UI ✔

@richardlt richardlt merged commit a0ed12c into ovh:master Feb 9, 2023
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.

4 participants