0xPolygonMiden / miden-client

Client library that facilitates interaction with the Miden rollup
MIT License
25 stars 22 forks source link

Improve CLI errors #369

Open igamigo opened 1 month ago

igamigo commented 1 month ago

What should be done?

Some errors are a bit cryptic or not very user-friendly. One such case is when running miden init on a directory that already contains a miden-client.toml. There are likely various in the same situation, and we should make them nicer.

How should it be done?

It's likely that there are several places in which we could improve these. Additionally, we can take the opportunity to document some commands a bit more (for example, explain what happens in the miden init command if the directory already contains the config file; or explain what happens when you try to export to a filename that already exists in the directory).

When is this task done?

When we have reviewed occurrences and we have improved at least the miden init case.

Additional context

No response