Files
heartwood/radicle-cli/examples/rad-auth-errors.md
T
cloudhead 057af40ea3 radicle: Fix config loading with bad alias
Previously, a config would load fine with an invalid alias,
due to how serde is configured for the `Alias` type. This fixes it.
2024-03-21 14:44:04 +01:00

18 lines
448 B
Markdown

Note that aliases must not be longer than 32 bytes, or you will get an error.
There are other rules as well:
``` (fail)
$ rad auth --alias "5fad63fe6b339fa92c588d926121bea6240773a7"
✗ Error: rad auth: alias cannot be greater than 32 bytes
```
``` (fail)
$ rad auth --alias "john doe"
✗ Error: rad auth: alias cannot contain whitespace or control characters
```
``` (fail)
$ rad auth --alias ""
✗ Error: rad auth: alias cannot be empty
```