4 releases
0.1.3 | Dec 28, 2023 |
---|---|
0.1.2 | Sep 2, 2020 |
0.1.1 | Aug 5, 2020 |
0.1.0 | Aug 3, 2020 |
#618 in Cargo plugins
9KB
151 lines
error_show
A tool that shows the description of the error code.
Installing
cargo install error_show
Usage
> error_show -h
error_show 0.1.2
Show error code information
USAGE:
error_show [FLAGS] <errno>
FLAGS:
-h, --help Prints help information
-n, --ntstatus Is this an ntstatus code on windows?
-V, --version Prints version information
ARGS:
<errno> Decimal or hexadecimal error code
Examples
On Windows(Support NTSTATUS, HRESULT and WININET error code):
> error_show 0xC0000005
Error(0xC0000005): Unknown.
> error_show -n 0xC0000005
Error(0xC0000005): Invalid access to memory location.
> error_show 2
Error(2): The system cannot find the file specified.
> error_show -n 2
Error(2): ERROR_WAIT_2
> error_show 12006
Error(12006): The URL does not use a recognized protocol
> error_show 0x80004002
Error(0x80004002): No such interface supported
> error_show -2147467262
Error(-2147467262): No such interface supported
On Linux or macOS:
% error_show 12
Error(12): Cannot allocate memory
Dependencies
~4MB
~74K SLoC