Fixed docs for compartmentalised exitcodes

main
Michal 2 years ago
parent 5e0d50e995
commit c7063ca640
No known key found for this signature in database
GPG Key ID: A6A1A4DCB22279B9

@ -25,15 +25,8 @@ Work it harder, make it better!
| AppExitCode (named Enum) | Exit code (i32) | Error Description | | AppExitCode (named Enum) | Exit code (i32) | Error Description |
|--------------------------|-----------------|--------------------------------------------------------------------------------------------------------| |--------------------------|-----------------|--------------------------------------------------------------------------------------------------------|
| `RunAsRoot` | `1` | Malachite was run as root. This is highly discouraged. So highly, in fact, that it will refuse to run. | | `RunAsRoot` | `1` | Malachite was run as root. This is highly discouraged. So highly, in fact, that it will refuse to run. |
| `BuildInWorkspace` | `2` | Malachite was run in Workspace mode, but a Repository-mode-specific operation was supplied | | `PkgsNotFound` | `2` | No packages were specified/found for the desired operation |
| `PkgNotFound` | `3` | A build was attempted for a package that does not exist | | `DirNotEmpty` | `3` | The creation of a Malachite repository was attempted in a non-empty directory |
| `InvalidMode` | `4` | Malachite was launched in a mode other than `workspace` or `repository` | | `ConfigParseError` | `4` | The config file could not be parsed |
| `DirNotEmpty` | `5` | The creation of a Malachite repository was attempted in a non-empty directory | | `RepoParseError` | `5` | The repository info could not be parsed |
| `ConfigNotFound` | `6` | The default config file (`./mlc.toml`) was not found | | `RepoNotClean` | `6` | The git repository is not clean and cannot be removed without `--force` |
| `NoPkgs` | `7` | Somehow, no packages were supplied to/found in the relevant operation |
| `ConfigParseError` | `8` | The config file could not be parsed |
| `InvalidRepo` | `9` | The generated repository somehow contains no packages |

Loading…
Cancel
Save