• Suggested alternative catch handler, if a command is not found. It will trigger a debug log statement.

    Parameters

    Returns void

    Example

    ifCommand(editor, commandName)
    .then(handler)
    .catch(optionalCommandNotFound);