Function handlePromptError

  • Handles errors that occur during inquirer prompts. If the error is an instance of ExitPromptError, it will log a message indicating that the operation was cancelled by the user and exit gracefully. Otherwise, it will log an error message with the error details and exit with an error code.

    Parameters

    • error: unknown

      The error that was thrown by inquirer.

    Returns void