@salesforce/sf-plugins-core
Preparing search index...
errorHandling
computeErrorCode
Function computeErrorCode
computeErrorCode
(
e
:
Error
|
SfError
<
AnyJson
>
|
CLIError
)
:
number
Takes an error and returns an exit code. Logic:
If it looks like a gack, use that code (20)
If it looks like a TypeError, use that code (10)
use the exitCode if it is a number
use the code if it is a number, or 1 if it is present not a number
use the process exitCode
default to 1
Parameters
e
:
Error
|
SfError
<
AnyJson
>
|
CLIError
Returns
number
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
@salesforce/sf-plugins-core
Loading...
Takes an error and returns an exit code. Logic: