[Improvement]: Better error message when project is not found in gateway #1397
Labels
Contribution Wanted
The community is welcome to collaborate on this issue
Good First Issue
Good for newcomers
S-Accepted
This will be worked on
T-Improvement
Improvement or addition to existing features
Describe the improvement
To improve the error message "project not found" to something like "project 'blablah' not found", it needs a little refactor.
Start with turning
ProjectNotFound
into a tuple structProjectNotFound(ProjectName)
.Then, go through all usages of this variant, and add the project name into it:
scope
.proxy.rs
can be handled like this:After this change, calling
cargo r -p cargo-shuttle -- project status --name unusedprojectname
against the local stack should give the project name back in the error.Feel free to comment on this issue if you want to work on it!
The text was updated successfully, but these errors were encountered: