🔨unwrap
Try to get the value, will panic when the wrapped value is an error.
In Node.js, you can specify {panic: true}
to let the program exit instead of throwing an error.
If you want to enable panic always in Node.js, you can specify the panic
option in WrapConfig
.
Exit code
If you need to specify an exit code in Node.js, you can pass the exitCode
to unwrap
method.
Last updated