Skip to content

Should DeleteClient return an error if a client does not exist? #344

Open
@hug-dev

Description

@hug-dev

Currently it's possible to delete a client that does not exist, example with the tool:

[hugdev01@machine parsec-tool]$ ./target/debug/parsec-tool list-clients
[INFO ] No clients in the service.
[hugdev01@machine parsec-tool]$ ./target/debug/parsec-tool delete-client -c "DO_NOT_DELETE_ME🤪"
[INFO ] Client "DO_NOT_DELETE_ME🤪" deleted.

Maybe we should do a list_clients inside the implementation of delete_clients and check if the client requisted does exist before? If not we could return PsaErrorDoesNotExist.

We should also update the page in the book.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomerssmallEffort label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions