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

runservice: improve errors in logsHandler #179

Merged

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Nov 13, 2019

  • return errNotExist in readTaskLogs when the executor task doesn't exist: so
    the client will receive a 404 instead of a 500 (since a generic error will be
    mapped to a 500).
  • Wrap the errNotExist returned by readTaskLogs with a new ErrNotExits reporting
    "log doesn't exist"

* return errNotExist in readTaskLogs when the executor task doesn't exist: so
the client will receive a 404 instead of a 500 (since a generic error will be
mapped to a 500).
* Wrap the errNotExist returned by readTaskLogs with a new ErrNotExits reporting
"log doesn't exist"
@sgotti sgotti merged commit 32a08ec into agola-io:master Nov 14, 2019
@sgotti sgotti deleted the runservice_logshandler_improve_errors branch November 15, 2019 14:49
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
…prove_errors

runservice: improve errors in logsHandler
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
…prove_errors

runservice: improve errors in logsHandler
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.

None yet

1 participant