@salesforce/sf-plugins-core
    Preparing search index...

    Function computeErrorCode

    • 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