Suggested alternative catch handler, if a command is not found. It will trigger a debug log statement.
catch
error to ignore
ifCommand(editor, commandName) .then(handler) .catch(optionalCommandNotFound); Copy
ifCommand(editor, commandName) .then(handler) .catch(optionalCommandNotFound);
Suggested alternative
catch
handler, if a command is not found. It will trigger a debug log statement.