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

ockam project ticket should return a proper error message #5226

Open
etorreborre opened this issue Jul 4, 2023 · 6 comments
Open

ockam project ticket should return a proper error message #5226

etorreborre opened this issue Jul 4, 2023 · 6 comments
Assignees
Labels
Component: Command good first issue hacktoberfest Apply to issues you want contributors to help with help wanted

Comments

@etorreborre
Copy link
Member

etorreborre commented Jul 4, 2023

Observed behavior

Reset your project

ockam reset -y

and try to create a project ticket

❯ ockam project ticket                                                                                                                                                                                                                                                                                                                                                                                               OCK500

  × unknown project default
  help: Please report this issue, with a copy of your logs, to https://github.com/build-trust/ockam/issues

  Version 0.90.0, hash: 78760ecfc8a9fb5b49b785f5e1a5ce0560e3bce3

Steps to reproduce

An error 500 is return but the problem is simply that the current user must enroll with ockam enroll first.

Expected behavior

Return a user error when a project does not exist for an ockam project command and suggest to run ockam enroll first

Ockam Version

0.90.0


We love helping new contributors! ❤️
If you have questions or need help as you explore, please join us on Discord. If you're looking for other issues to contribute to, please checkout our good first issues.

@DerekStrickland
Copy link

Hi @etorreborre,

I just want to clarify. Do you want a PR to handle any relevant project subcommand where the project name is not found, or just the ticket subcommand?

Thanks!

@etorreborre
Copy link
Member Author

Hi @DerekStrickland I haven't tested the other project commands and it is indeed probable that they return the same error. So please address them all :-).

@nazmulidris nazmulidris added the hacktoberfest Apply to issues you want contributors to help with label Sep 25, 2023
@guha-rahul
Copy link

I want to work on this. Being a new contributor can anyone tell me what files to look into?

@nazmulidris
Copy link
Contributor

@guha-rahul I just assigned you this issue. Please let us know if you have any questions as you explore. You can also ask questions on the contributors discord https://discord.gg/RAbjRr3kds

@guha-rahul
Copy link

Thanks , will look into them right away!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Command good first issue hacktoberfest Apply to issues you want contributors to help with help wanted
Projects
None yet
4 participants